Experiment Model
Contents
Experiment Model#
- class EasyReflectometry.experiment.model.Model(structure, scale, background, resolution, name='EasyModel', interface=None)[source]#
Bases:
BaseObj
- add_item(*items)[source]#
Add a layer or item to the model structure.
- Parameters
*items –
Layers or items to add to model structure
- classmethod default(interface=None)[source]#
Default constructor for the reflectometry experiment model.
- Returns
Default model container
- Return type
- duplicate_item(idx)[source]#
Duplicate a given item or layer in a structure.
- Parameters
idx (
int
) – Index of the item or layer to duplicate
- classmethod from_pars(structure, scale, background, resolution, name='EasyModel', interface=None)[source]#
Constructor of a reflectometry experiment model where the parameters are known.
- remove_item(idx)[source]#
Remove an item from the model.
- Parameters
idx (int) – Index of the item to remove
- property uid#
Return a UID from the borg map
- user_data: dict#