Model¶
- class ompy.Model(name, _Model__isfrozen=False)[source]¶
Bases:
objectDataclass for Model
- Variables:
Name – Name of the class (for printing etc.)
Methods Summary
asdict()return fields and properties as dict
Returns a list of the names of the paramters
is_changed([include, exclude])Verify that defaults arguments have been changed
load(path)Loads own parameters from path
save(path)Save the model parameters to path
Methods Documentation
- is_changed(include=[], exclude=[])[source]¶
Verify that defaults arguments have been changed
- Parameters:
- Raises:
ValueError – If parameters are still the default values
- Return type: