dodal.devices.detector.detector.DetectorParams#
- class dodal.devices.detector.detector.DetectorParams[source]#
Holds parameters for the detector. Provides access to a list of Dectris detector sizes and a converter for distance to beam centre.
- Parameters:
data (
Any
)
Create a new model by parsing and validating input data from keyword arguments.
Raises [
ValidationError
][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.self
is explicitly positional-only to allowself
as a field name.- Parameters:
data (
Any
)
Methods
get_beam_position_mm
(detector_distance)get_beam_position_pixels
(detector_distance)get_detector_size_pizels
()serialize_detector_size_constants
(size)Attributes
beam_xy_converter
full_filename
full_number_of_images
model_computed_fields
A dictionary of computed field names and their corresponding
ComputedFieldInfo
objects.model_config
Configuration for the model, should be a dictionary conforming to [
ConfigDict
][pydantic.config.ConfigDict].model_fields
Metadata about the fields defined on the model, mapping of field names to [
FieldInfo
][pydantic.fields.FieldInfo] objects.run_number
expected_energy_ev
exposure_time
directory
prefix
detector_distance
omega_start
omega_increment
num_images_per_trigger
num_triggers
use_roi_mode
det_dist_to_beam_converter_path
override_run_number
trigger_mode
detector_size_constants
enable_dev_shm