id4_common.devices.qxscan_device#

Define qxscan_setup device.

This device will holds the parameters and energy list used in a qxscan plan.

Module Contents#

id4_common.devices.qxscan_device.logger#
id4_common.devices.qxscan_device.hbar = 6.582119569e-16#
id4_common.devices.qxscan_device.speed_of_light = 2.99792458e+18#
id4_common.devices.qxscan_device.electron_mass#
id4_common.devices.qxscan_device.constant#
class id4_common.devices.qxscan_device.EdgeDevice#

Bases: ophyd.Device

Device storing start, end, step, and time-factor parameters for the edge region.

Estart#
Eend#
Estep#
TimeFactor#
class id4_common.devices.qxscan_device.PreEdgeRegion#

Bases: ophyd.Device

Device holding start energy, step, and time-factor for a single pre-edge region.

Estart#
Estep#
TimeFactor#
class id4_common.devices.qxscan_device.PreEdgeDevice#

Bases: ophyd.Device

Device grouping up to five pre-edge scan regions and their count.

num_regions#
region1#
region2#
region3#
region4#
region5#
class id4_common.devices.qxscan_device.PostEdgeRegion#

Bases: ophyd.Device

Device holding k-end, k-step, and time-factor for a single post-edge region.

Kend#
Kstep#
TimeFactor#
class id4_common.devices.qxscan_device.PostEdgeDevice#

Bases: ophyd.Device

Device grouping up to five post-edge k-space scan regions and their count.

num_regions#
region1#
region2#
region3#
region4#
region5#
class id4_common.devices.qxscan_device.QxscanParams#

Bases: ophyd.Device

Device storing all qxscan energy-region parameters and the resulting energy list.

pre_edge#
edge#
post_edge#
energy_list#
factor_list#
save_params_json(fname)#

Save a json file that contains a dictionary with the qxscan parameters.

Parameters:
  • fname (string)

  • saved. (Location and name of the file to be)

Return type:

None

load_params_json(fname)#

Load a json file that contains a dictionary with the qxscan parameters.

This dictionary must be formatted as required by self._read_params_dict.

Parameters:
  • fname (string)

  • loaded (Location and name of the file to be)

Return type:

None

load_from_scan(scan, cat=cat)#

Restore qxscan parameters from the baseline stream of a previously recorded scan.