tomoscan.tomoscan_step

Software for tomography scanning with EPICS

Classes

TomoScanSTEP

Derived class for tomography scanning with EPICS implementing step scan

Functions:

tomoscan.tomoscan_step

Software for tomography scanning with EPICS

class tomoscan.tomoscan_step.TomoScanSTEP(pv_files, macros)[source]

Bases: TomoScan

Derived class used for tomography scanning with EPICS implementing step scan

Parameters
  • pv_files (list of str) – List of files containing EPICS pvNames to be used.

  • macros (dict) – Dictionary of macro definitions to be substituted when reading the pv_files

begin_scan()[source]

Performs the operations needed at the very start of a scan.

This does the following:

  • Calls the base class method.

  • Set the HDF plugin.

collect_dark_fields()[source]

Collects dark field images. Calls collect_static_frames() with the number of images specified by the NumDarkFields PV.

collect_flat_fields()[source]

Collects flat field images. Calls collect_static_frames() with the number of images specified by the NumFlatFields PV.

collect_projections()[source]

Collects projections in fly scan mode.

This does the following:

  • Call the superclass collect_projections() function.

  • Set the trigger mode on the camera.

  • Set the camera in acquire mode.

  • Starts the camera acquiring in software trigger mode.

  • Update scan status.

collect_static_frames(num_frames)[source]

Collects num_frames images in “Internal” trigger mode for dark fields and flat fields.

Parameters

num_frames (int) – Number of frames to collect.

end_scan()[source]

Performs the operations needed at the very end of a scan.

This does the following:

  • Calls save_configuration().

  • Put the camera back in “FreeRun” mode and acquiring so the user sees live images.

  • Sets the speed of the rotation stage back to the maximum value.

  • Calls move_sample_in().

  • Calls the base class method.

wait_pv(epics_pv, wait_val, timeout=-1)[source]

Wait on a pv to be a value until max_timeout (default forever) delay for pv to change