oap_model.detector_run module

class oap_model.detector_run.DetectorRun(detector: oap_model.detector.Detector, images: list[oap_model.detector.ImagedRegion], distance: float)[source]

Bases: object

detector: Detector
property detector_position
distance: float
get_frames_to_measure(spec, **kwargs) list[tuple[float, float], oap_model.intensity.IntensityField][source]

Returns a list of frames to measure, with the y extent of the frame and the frame itself.

images: list[oap_model.detector.ImagedRegion]
classmethod load(filename)[source]
measure_diameters(spec=DiameterSpec(diameter_method='circle_equivalent', edge_filter=True, framed=True, min_sep=None, bound=True, filled=False, z_confinement=False, c=8.0), **kwargs)[source]
plot(n_images: int = None, image_filters: list[oap_model.detector.ImageFilter] = [<ImageFilter.PRESENT_HALF_INTENSITY: 1>], **kwargs)[source]

Plot the images in the run.

save(filename)[source]
set_particles()[source]
slice(distance, detector_yval=None)[source]
trim_blank_space()[source]

Trim the blank space from the start and end of each image.

volume(diameter, spec: DiameterSpec = None)[source]
property xlims