Dear Sir,
I have a problem about the command: nlread and nlsave
I hope to set and restore the configurations or physical properties with my own " object name" , not the object_id.
as the scipt blow,
I set the "modle" as the 'object_id' in order to represent clearly later.
then, I want to restore this device configuration,
No 1 , as the manual said, is ok, but I don't know why I can't use the 'restore_conf[modle]'.
No 2 is convenient, but do not work, I don't know why.
Thank you.
# part of my script
........
device_configuration = DeviceConfiguration( central_region,[left_electrode, right_electrode])
nlsave('analysis.nc', device_configuration,'modle' )
.........
# now restore the configuration
# No 1 success
restore_conf = nlread ( 'analysis.nc', DeviceConfiguration )
this = restore_conf[0]
# wrong to use 'restore_conf[modle]' why ?
nlsave('2.nc',this,'lih2li')
# No 2  don't know how to do
restore_conf2 = nlread ( 'analysis.nc', DeviceConfiguration,object_id ='modle' )
# wrong, how to change the script ?