This module contains objects that combined make up the data model. Any object that inherhits from TaskNode can be added to and handled by the QueueModel.
Bases: object
Returns the full paths, including the filename, to preview/thumbnail images stored in the archive directory.
Parameters: | acquisition (Acquisition) – The acqusition object to generate paths for. |
---|---|
Returns: | The full paths. |
Return type: | str |
Bases: object
Bases: object
Class that represents a centred position. Can also be initialized with a mxcube motor dict which simply is a dictonary with the motornames and their corresponding values.
Bases: HardwareObjects.queue_model_objects_v1.TaskNode
Bases: object
Bases: HardwareObjects.queue_model_objects_v1.TaskNode
Adds the child node <child>. Raises the exception TypeError if child is not of type TaskNode.
Moves the child (reparents it) if it already has a parent.
Parameters: |
|
---|---|
Crystal : | Crystal object |
Returns: | None |
Return type: | None |
Bases: HardwareObjects.queue_model_objects_v1.TaskNode
Bases: object
Bases: object
Returns the archive directory, for longer term storage.
Returns: | Archive directory. |
---|---|
Return type: | str |
Bases: HardwareObjects.queue_model_objects_v1.TaskNode
Bases: HardwareObjects.queue_model_objects_v1.TaskNode
Bases: object
Objects that inherit TaskNode can be added to and handled by the QueueModel object.
Returns: | The children of this node. |
---|---|
Return type: | List of TaskNode objects. |
Returns: | The parent of this node. |
---|---|
Return type: | TaskNode |
Returns: | True if enabled and False if disabled |
---|
Sets the enabled state, True represents enabled (executable) and false disabled (not executable).
Parameters: | state (bool) – The state, True or False |
---|
Sets the name.
Parameters: | name (str) – The new name. |
---|---|
Returns: | none |
Sets the number of this node. The number can be used to give the task a unique number when for instance, the name is not unique for this node.
Parameters: | number (int) – number |
---|
Bases: HardwareObjects.queue_model_objects_v1.TaskNode
return [{‘comment’: ‘’, ‘helical’: 0, ‘motors’: {}, ‘take_snapshots’: False, ‘fileinfo’: {‘directory’: ‘/data/id14eh4/inhouse/opid144/’ + ‘20120808/RAW_DATA’,
‘prefix’: ‘opid144’, ‘run_number’: 1, ‘process_directory’: ‘/data/id14eh4/inhouse/’ + ‘opid144/20120808/PROCESSED_DATA’},
‘in_queue’: 0, ‘detector_mode’: 2, ‘shutterless’: 0, ‘sessionId’: 32368, ‘do_inducedraddam’: False, ‘sample_reference’: {}, ‘processing’: ‘False’, ‘residues’: ‘’, ‘dark’: True, ‘scan4d’: 0, ‘input_files’: 1, ‘oscillation_sequence’: [{‘exposure_time’: 1.0,
‘kappaStart’: 0.0, ‘phiStart’: 0.0, ‘start_image_number’: 1, ‘number_of_images’: 1, ‘overlap’: 0.0, ‘start’: 0.0, ‘range’: 1.0, ‘number_of_passes’: 1}],
‘nb_sum_images’: 0, ‘EDNA_files_dir’: ‘’, ‘anomalous’: ‘False’, ‘file_exists’: 0, ‘experiment_type’: ‘SAD’, ‘skip_images’: 0}]