The Experiment Handler Reference¶
-
class
neutronbraggedge.experiment_handler.experiment.
Experiment
(tof=None, lambda_array=None, distance_source_detector_m=None, detector_offset_micros=None)[source]¶ Class that allows: - convert the TOF scale into Lambda - distance source - detector - detector time offset
Arguments: * tof: tof array in s * lambda_array: mandatory only if detector_offset or distance_source_detector are unknown * distance_source_detector: mandatory only if lambda is the unknown parameter (m) * detector_offset: mandatory only if lambda is the unknown parameter (micros)
-
calculate_detector_offset
()[source]¶ return the detector time offset value
If lambda_array and tof_array are provided, the offset is calculated Otherwise, the detector_offset argument must be provided
-
calculate_distance_source_detector
()[source]¶ return the distance source detector
If lambda_array and tof_array are provided, the distance is calculated Otherwise, the distance_source_detector must be provided
-