id4_common.devices.ad_eiger1M#

Eiger 1M setup

Module Contents#

class id4_common.devices.ad_eiger1M.TriggerTime(*args, image_name=None, min_period=0.0, delay=0.3, **kwargs)#

Bases: id4_common.devices.ad_mixins.TriggerBase

This trigger mixin class takes one acquisition per trigger.

property acquisition_signal#

Return the acquisition signal object.

property delay#

Return the post-trigger delay in seconds.

property min_period#

Return the minimum time between triggers in seconds.

setup_manual_trigger()#

Configure detector stage signals for manual (software) triggering.

setup_external_trigger(trigger_type='gate')#

Configure detector stage signals for external hardware triggering.

stage()#

Stage the detector, optionally enabling external trigger for flyscans.

unstage()#

Unstage the detector, stopping acquisition and waiting for processing to finish.

trigger()#

Trigger one acquisition.

class id4_common.devices.ad_eiger1M.Eiger1MDetector(*args, default_folder='', hdf1_name_template='%s/%s_%6.6d', hdf1_file_extension='h5', max_num_images=600000, **kwargs)#

Bases: TriggerTime, id4_common.devices.counters_mixin.CountersMixin, ophyd.areadetector.DetectorBase

Eiger 1M area detector with HDF5 file writing and statistics plugins.

cam#
codec1#
codec2#
proc#
trans#
image#
hdf1#
roi1#
roi2#
roi3#
roi4#
stats1#
stats2#
stats3#
stats4#
stats5#
default_folder = ''#
hdf1_name_format = '%s/%s_%6.6d.h5'#
max_num_images = 600000#
align_on(time=0.1)#

Start detector in alignment mode

align_off()#

Stop detector

save_images_on()#

Enable HDF5 image saving.

save_images_off()#

Disable HDF5 image saving.

auto_save_on()#

Enable automatic HDF5 saving on each acquisition.

auto_save_off()#

Disable automatic HDF5 saving on each acquisition.

default_settings()#

Apply default detector settings and stage signal configuration.

plot_all()#

Set all five stats channels to be plotted.

plot_stats1()#

Set only Stats1 total to be plotted.

plot_stats2()#

Set only Stats2 total to be plotted.

plot_stats3()#

Set only Stats3 total to be plotted.

plot_stats4()#

Set only Stats4 total to be plotted.

plot_stats5()#

Set only Stats5 total to be plotted.

setup_images(base_path, name_template, file_number, flyscan=False)#

Configure HDF5 file path, name, and number for the upcoming scan.

plot_select(stats)#

Selects which stats will be plotted. All are being read.

This assumes that 5 stats are setup in Bluesky.

Parameters:

stats (iterable of ints) – List with the stats numbers to be plotted.

property save_image_flag#

Return True if images will be saved on next acquisition.

property label_option_map#

Return mapping of stats channel label names to their index numbers.

property plot_options#

Return list of available channel names for plot selection.

select_plot(channels)#

Select which stats channels to plot by label name.

field_for_label(label)#

Return the ophyd field name for a plot-option label.

select_read(channels)#

No-op: all stats channels are always read (only hinted/normal differ).