JungfraujochWrapper¶
version: 2025.3.17.dev1
- class epoc.JungfraujochWrapper(host)¶
Wrapper for the Jungfraujoch python client (jfjoch_client).
- cancel() None¶
Cancel the current data collection.
- collect(fname)¶
Wrapper method to do data collection from the command line. Waits for input to start, then records until next input.
- collect_pedestal(wait=False)¶
Start pedestal collection
- Parameters:
wait (bool) – If True, wait for the measurement to finish before returning
- property image_time_us: int¶
Total image time in microseconds
- init() None¶
Initialize Jungfraujoch. Run once after startup or when restarting the broker
- live() None¶
Start live mode. I.e. collect many images but do not save them. Used for live view when searching for crystals
- start(n_images: int, fname='', th=0, beam_x_pxl=1, beam_y_pxl=1, detector_distance_mm=100, incident_energy_ke_v=200, wait=False) None¶
Start a measurement.
- Parameters:
n_images (int) – Number of images to collect
fname (str) – Filename for the measurement. If empty the measurement will not be saved.
th (int, default 0) – Threshold for the images. If the pixel value is below this in a sub image it will be set to 0. If the value is 0, no thresholding will be done.
beam_x_pxl (int, default 1) – X position of the beam in pixels
beam_y_pxl (int, default 1) – Y position of the beam in pixels
detector_distance_mm (float) – Distance from the detector to the sample in mm
incident_energy_ke_v (float, default 200) – Incident energy in keV
wait (bool) – If True, wait for the measurement to finish before returning.
- status()¶
- wait_until_idle(progress=False) None¶
Wait in a loop until the Jungfraujoch is idle
- Parameters:
progress (bool) – If True, print progress of the measurement