tomoscan.tomoscan_2bm_step
¶
Software for tomography step scanning with EPICS at APS beamline 2-BM
Classes¶
- TomoScan2BM
Derived class for tomography step scanning with EPICS at APS beamline 2-BM
Functions:
Software for tomography step scanning with EPICS at APS beamline 2-BM |
- class tomoscan.tomoscan_2bm_step.TomoScan2BMSTEP(pv_files, macros)[source]¶
Bases:
TomoScanSTEP
Derived class used for tomography scanning with EPICS at APS beamline 2-BM
- 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
- abort_scan()[source]¶
Aborts a scan that is running and performs the operations needed when a scan is aborted.
This does the following:
Sets scan_is_running, a flag that is checked in
wait_camera_done()
. Ifwait_camera_done()
finds the flag set then it raises a ScanAbortError exception.Stops the rotation motor.
Stops the file saving plugin.
- begin_scan()[source]¶
Performs the operations needed at the very start of a scan.
This does the following:
Set data directory.
Set the TomoScan xml files
Calls the base class method.
Opens the front-end shutter.
- close_frontend_shutter()[source]¶
Closes the shutters to collect dark fields. This does the following:
Closes the 2-BM-A front-end shutter.
- close_shutter()[source]¶
Closes the shutters to collect dark fields. This does the following:
Closes the 2-BM-A fast shutter.
- end_scan()[source]¶
Performs the operations needed at the very end of a scan.
This does the following:
Reset rotation position by mod 360.
Calls the base class method.
Stop the file plugin.
Closes shutter.
Add theta to the raw data file.
Copy raw data to data analysis computer.
- open_frontend_shutter()[source]¶
Opens the shutters to collect flat fields or projections.
This does the following:
Checks if we are in testing mode. If we are, do nothing else opens the 2-BM-A front-end shutter.
- open_shutter()[source]¶
Opens the shutters to collect flat fields or projections.
This does the following:
Opens the 2-BM-A fast shutter.
- set_trigger_mode(trigger_mode, num_images)[source]¶
Sets the trigger mode SIS3820 and the camera.
- Parameters
trigger_mode (str) – Choices are: “FreeRun”, “Internal”, or “PSOExternal”
num_images (int) – Number of images to collect. Ignored if trigger_mode=”FreeRun”. This is used to set the
NumImages
PV of the camera.
- wait_frontend_shutter_open(timeout=-1)[source]¶
Waits for the front end shutter to open, or for
abort_scan()
to be called.While waiting this method periodically tries to open the shutter..
- Parameters
timeout (float) – The maximum number of seconds to wait before raising a ShutterTimeoutError exception.
- Raises
ScanAbortError – If
abort_scan()
is calledShutterTimeoutError – If the open shutter has not completed within timeout value.