However, if a NTParameterSet object is generated by unpickling it, modifying it is not possible:
import pickle
param_unpickled = pickle.loads(pickle.dumps(param))
param_unpickled
>> {'param1': 'something else'}
param_unpickled.param1 = 'a third thing'
param_unpickled # modification appears to be successful
>> {'param1': 'a third thing'}
param_unpickled.param1 # but directly accessing the value returns the old value
>> 'something else'
After initializing a sumatra.parameters.NTParameterSet, it can be modified:
However, if a NTParameterSet object is generated by unpickling it, modifying it is not possible: