mxcubecore.HardwareObjects.DESY.P11Collect#
Classes
|
- class mxcubecore.HardwareObjects.DESY.P11Collect.P11Collect(*args)[source]#
Bases:
AbstractCollect- acquisition_cleanup()[source]#
Performs cleanup after data acquisition, including stopping the detector and resetting motor velocities.
- add_h5_info_characterisation(imagepath, start_angles_collected, degreesperframe)[source]#
Adds metadata to the HDF5 file for characterization data collection.
- add_h5_info_standard_data_collection(imagepath)[source]#
Adds metadata to the HDF5 file for a standard data collection.
- Parameters:
imagepath (str) – Path to the HDF5 file.
- adxv_notify(image_filename, image_num=1)[source]#
Sends a notification to an ADXV to load an image file and display a specific slab.
- base_dir(path, what)[source]#
Returns the base directory path that contains the specified “what” directory or file.
- check_path(path=None, force=False)[source]#
Checks if a path is valid and accessible, and creates directories if needed.
- collect_characterisation(start_angle, img_range, nimages, angle_inc, exp_time)[source]#
Collects a series of images at different angles for characterization.
- Parameters:
start_angle (float) – Starting angle for the characterization acquisition.
img_range (float) – Range of angles over which a single image is collected.
nimages (int) – Number of images to be collected during the characterization process.
angle_inc (float) – Increment in angle between each image in the collection.
exp_time (float) – Exposure time for each image.
- collect_std_collection(start_angle, stop_angle)[source]#
Performs the standard data collection by moving the omega motor from start to stop angle.
- create_characterisation_directories()[source]#
Creates directories for raw files and processing files for EDNA and MOSFLM.
- create_or_get_dataset(group, dataset_name, dataset_data)[source]#
Creates or retrieves a dataset within a group.
- Parameters:
group (h5py.Group) – The group where the dataset will be created or retrieved.
dataset_name (str) – The name of the dataset.
dataset_data – The data to be stored in the dataset.
- diffractometer_prepare_collection()[source]#
Prepares the diffractometer for data collection.
- Returns:
True if the diffractometer is in collect phase, False otherwise.
- Return type:
- get_filter_thickness()[source]#
Calculates the total thickness of three filters.
- Returns:
The total thickness of the filters in meters. If the filter server is not available, it returns -1.
- Return type:
- get_filter_thickness_in_mm()[source]#
Calculates the total thickness of three filters in millimeters.
- Returns:
The total thickness of the filters in millimeters. If the filter server is not available, it returns -1.
- Return type:
- get_filter_transmission()[source]#
Gets the current transmission value from the filter server.
- Returns:
The current transmission value. If the filter server is not available, it returns -1.
- Return type:
- get_or_create_group(parent_group, group_name)[source]#
Gets or creates a group within a parent group.
- Parameters:
parent_group (h5py.Group) – The parent group where the new group will be created.
group_name (str) – The name of the group to get or create.
- Returns:
The group object.
- Return type:
h5py.Group
- prepare_characterization()[source]#
Prepares for characterization data collection by setting the start angle and angle increment for the detector.
- prepare_input_files()[source]#
Prepares directories for processing input files.
- Returns:
Paths for XDS and AutoProc directories.
- Return type:
- prepare_std_collection(start_angle, img_range)[source]#
Prepares a standard collection by setting the start angle and angle increment in the detector’s header.
- set_energy(value)[source]#
Sets the energy value on the beamline.
- Parameters:
value (float) – Energy value to set.
- set_resolution(value)[source]#
Sets the resolution of the beamline.
- Parameters:
value (float) – Resolution value to set.
- set_transmission(value)[source]#
Sets the transmission value on the beamline.
- Parameters:
value (float) – Transmission value to set.
- start_process(command)[source]#
Starts a process with the specified command.
- Parameters:
command (list) – List of command arguments to start the process.
- trigger_auto_processing(process_event=None, frame_number=None)[source]#
Triggers auto processing based on the experiment type.
- Parameters:
process_event – Optional event that triggered the auto processing.
frame_number (int, optional) – Number of frames to process.
- write_info_txt(path, name, startangle, frames, degreesperframe, imageinterval, exposuretime, run_type)[source]#
Writes info about the data collection into a text file.
- Parameters:
path (str) – Directory path where the info file will be saved.
name (str) – Name of the run.
startangle (float) – Starting angle of the collection.
frames (int) – Number of frames collected.
degreesperframe (float) – Degrees per frame.
imageinterval (float) – Interval between images.
exposuretime (float) – Exposure time in milliseconds.
run_type (str) – Type of run (e.g., ‘regular’ or ‘screening’).