- class easyreflectometry.sample.sample.Sample[source]#
Bases:
BaseCollection
Collection of assemblies that represent the sample for which experimental measurements exist.
- __init__(*list_layer_like, name='EasySample', interface=None, **kwargs)[source]#
Constructor.
- Parameters:
args – The assemblies in the sample.
name (
str
) – Name of the sample, defaults to ‘EasySample’.interface – Calculator interface, defaults to None.
- property uid: int#
The UID from the borg map.
- as_dict(skip=None)[source]#
Produces a cleaned dict using a custom as_dict method to skip necessary things. The resulting dict matches the parameters in __init__
- Parameters:
skip (
Optional
[list
]) – List of keys to skip, defaults to None.- Return type:
dict
- classmethod from_dict(data)[source]#
Create a Sample from a dictionary.
- Parameters:
data (
dict
) – dictionary of the Sample- Return type:
- Returns:
Sample
-
user_data:
dict
#