trajectory_verification¶
Attributes¶
Functions¶
|
Function to check whether all required and only denoted optional variables and meta information is available on a shnitsel-loaded trajectory. |
|
|
|
|
|
Module Contents¶
- _required_shnitsel_variables = ['energy', 'time']¶
- _optional_shnitsel_variables = ['atXYZ', 'nacs', 'dip_perm', 'dip_trans', 'forces', 'socs', 'state_names', 'state_types',...¶
- _required_shnitsel_attributes = ['input_format', 'input_format_version', 'input_type', 'completed', 'max_ts', 'delta_t',...¶
- _optional_shnitsel_attributes = ['has_forces', 'DataTree_Level', 'trajectory_input_path', 'trajid', '__original_dataset',...¶
- check_shnitsel_trajectory_data(trajectory, report=False)¶
Function to check whether all required and only denoted optional variables and meta information is available on a shnitsel-loaded trajectory.
- Parameters:
trajectory (Trajectory | xr.Dataset) – The trajectory to check for the presence of variables and settings
report (bool, optional) – Whether to raise an error if discrepancies were found. Defaults to False.
- Raises:
ValueError – If missing variables or attributes or unexpected variables or attributes are encountered in the provided trajectory and
report=Trueis set.- Returns:
The sets of missing required variables, present unexpected variables, missing required attributes and present unexpected attributes. None: No discrepancies found.
- Return type:
- verify_trajectory_format(obj, asserted_properties=None)¶