pcdsdevices.areadetector.plugins.HDF5FileStore
- class pcdsdevices.areadetector.plugins.HDF5FileStore(*args, **kwargs)
HDF5 Plugin to use for interactive/in-scan saving at LCLS.
Includes some mangling of the filename selection to keep the names human-readable because we don’t actually use filestore/databroker at LCLS.
Ophyd Device Components Attribute
Class
Suffix
Docs
Kind
Notes
auto_increment (ADComponent)
AutoIncrementconfig
Inherited from
HDF5Plugin_V31auto_save (ADComponent)
AutoSaveconfig
Inherited from
HDF5Plugin_V31capture (ADComponent)
Capturenormal
Inherited from
HDF5Plugin_V31delete_driver_file (ADComponent)
DeleteDriverFileconfig
Inherited from
HDF5Plugin_V31file_format (ADComponent)
FileFormatconfig
Inherited from
HDF5Plugin_V31file_name (ADComponent)
FileNameconfig
Inherited from
HDF5Plugin_V31file_number (ADComponent)
FileNumber[FileNumber r/w longout] File number
normal
Inherited from
HDF5Plugin_V31file_path (ADComponent)
EpicsPathSignalFilePathconfig
Inherited from
HDF5Plugin_V31file_path_exists (ADComponent)
EpicsSignalROFilePathExists_RBVconfig
Inherited from
HDF5Plugin_V31file_template (ADComponent)
FileTemplateconfig
Inherited from
HDF5Plugin_V31file_write_mode (ADComponent)
FileWriteModeconfig
Inherited from
HDF5Plugin_V31full_file_name (ADComponent)
EpicsSignalROFullFileName_RBVconfig
Inherited from
HDF5Plugin_V31num_capture (ADComponent)
NumCaptureconfig
Inherited from
HDF5Plugin_V31num_captured (ADComponent)
EpicsSignalRONumCaptured_RBVnormal
Inherited from
HDF5Plugin_V31read_file (ADComponent)
ReadFilenormal
Inherited from
HDF5Plugin_V31write_file (ADComponent)
WriteFilenormal
Inherited from
HDF5Plugin_V31write_message (ADComponent)
EpicsSignalWriteMessagenormal
Inherited from
HDF5Plugin_V31write_status (ADComponent)
EpicsSignalWriteStatusnormal
Inherited from
HDF5Plugin_V31configuration_names
ArrayAttributeSignalconfig
Inherited from
HDF5Plugin_V31array_counter (ADComponent)
ArrayCounter[ArrayCounter r/w longout] Counter that increments by 1 each time an NDArray callback is processed
normal
Inherited from
HDF5Plugin_V31array_rate (ADComponent)
EpicsSignalROArrayRate_RBV[ArrayRate_RBV r/o calc] Rate (Hz) at which ArrayCounter is incrementing. Computed in database.
normal
Inherited from
HDF5Plugin_V31asyn_io (ADComponent)
EpicsSignalAsynIO[AsynIO N/A asyn] asyn record to control debugging (asynTrace)
normal
Inherited from
HDF5Plugin_V31nd_attributes_file (ADComponent)
EpicsSignalNDAttributesFile- [NDAttributesFile r/w waveform]
The name of an XML file defining the PVAttributes and paramAttributes to be added to each NDArray by this plugin. The format of the XML file is described in the documentation for asynNDArrayDriver::readNDAttributesFile().
normal
Inherited from
HDF5Plugin_V31pool_alloc_buffers (ADComponent)
EpicsSignalROPoolAllocBuffers[PoolAllocBuffers r/o longin] The number of NDArrays this plugin has currently allocated.
normal
Inherited from
HDF5Plugin_V31pool_free_buffers (ADComponent)
EpicsSignalROPoolFreeBuffers[PoolFreeBuffers r/o longin] The number of free NDArrays this plugin has in its NDArrayPool.
normal
Inherited from
HDF5Plugin_V31pool_max_buffers (ADComponent)
EpicsSignalROPoolMaxBuffers[PoolMaxBuffers r/o longin] The maximum number of NDArrays this plugin is allowed to allocate.
normal
Inherited from
HDF5Plugin_V31pool_max_mem (ADComponent)
EpicsSignalROPoolMaxMem[PoolMaxMem r/o ai] The maximum amount of NDArrayPool memory this plugin is allowed to allocate.
normal
Inherited from
HDF5Plugin_V31pool_used_buffers (ADComponent)
EpicsSignalROPoolUsedBuffers- [PoolUsedBuffers N/A calc]
The number of used NDArrays this plugin has in its NDArrayPool. Calculated from PoolAllocBuffers and PoolFreeBuffers.
normal
Inherited from
HDF5Plugin_V31pool_used_mem (ADComponent)
EpicsSignalROPoolUsedMem[PoolUsedMem r/o ai] The actual amount of NDArrayPool memory this plugin is currently using.
normal
Inherited from
HDF5Plugin_V31port_name (ADComponent)
EpicsSignalROPortName_RBV[PortName_RBV r/o stringin] asyn port name
config
Inherited from
HDF5Plugin_V31asyn_pipeline_config
ArrayAttributeSignalconfig
Inherited from
HDF5Plugin_V31width (ADComponent)
EpicsSignalROArraySize0_RBV[ArraySize0_RBV r/o longin] First dimension of NDArray callback data
normal
Inherited from
HDF5Plugin_V31height (ADComponent)
EpicsSignalROArraySize1_RBV[ArraySize1_RBV r/o longin] Second dimension of NDArray callback data
normal
Inherited from
HDF5Plugin_V31depth (ADComponent)
EpicsSignalROArraySize2_RBV[ArraySize2_RBV r/o longin] Third dimension of NDArray callback data
normal
Inherited from
HDF5Plugin_V31array_size (DDC)
ArraySize(See below)
normal
Inherited from
HDF5Plugin_V31bayer_pattern (ADComponent)
EpicsSignalROBayerPattern_RBV[BayerPattern_RBV r/o mbbi] BayerPattern of last NDArray callback data (NDBayerPattern_t).
normal
Inherited from
HDF5Plugin_V31blocking_callbacks (ADComponent)
BlockingCallbacks- [BlockingCallbacks r/w bo]
0 = callbacks from the driver do not block; the NDArray data is put on a queue and the callback processes in its own thread.
1 = callbacks from the driver block; the callback processes in the driver callback thread.
config
Inherited from
HDF5Plugin_V31color_mode (ADComponent)
ColorMode0=Mono 1=Bayer 2=RGB1 3=RGB2 4=RGB3 5=YUV444 6=YUV422 7=YUV421
normal
Inherited from
HDF5Plugin_V31data_type (ADComponent)
DataType0=Int8 1=UInt8 2=Int16 3=UInt16 4=Int32 5=UInt32 6=Float32 7=Float64
normal
Inherited from
HDF5Plugin_V31dim0_sa (ADComponent)
EpicsSignalDim0SAnormal
Inherited from
HDF5Plugin_V31dim1_sa (ADComponent)
EpicsSignalDim1SAnormal
Inherited from
HDF5Plugin_V31dim2_sa (ADComponent)
EpicsSignalDim2SAnormal
Inherited from
HDF5Plugin_V31dim_sa (DDC)
DimSa(See below)
normal
Inherited from
HDF5Plugin_V31dimensions (ADComponent)
Dimensionsnormal
Inherited from
HDF5Plugin_V31dropped_arrays (ADComponent)
DroppedArrays- [DroppedArrays r/w longout]
Counter that increments by 1 each time an NDArray callback occurs when NDPluginDriverBlockingCallbacks=0 and the plugin driver queue is full, so the callback cannot be processed.
normal
Inherited from
HDF5Plugin_V31enable (ADComponent)
EnableCallbacks- [EnableCallbacks r/w bo]
Enable (1) or disable (0) callbacks from the driver to this plugin. If callbacks are disabled then the plugin will normally be idle and consume no CPU resources.
config
Inherited from
HDF5Plugin_V31min_callback_time (ADComponent)
MinCallbackTime- [MinCallbackTime r/w ao]
The minimum time in seconds between calls to processCallbacks. Any callbacks occuring before this minimum time has elapsed will be ignored. 0 means no minimum time, i.e. process all callbacks.
normal
Inherited from
HDF5Plugin_V31nd_array_address (ADComponent)
NDArrayAddress- [NDArrayAddress r/w longout]
asyn port address for NDArray driver that will make callbacks to this plugin. This address can be changed at run time, connecting the plugin to a different address in the NDArray driver.
normal
Inherited from
HDF5Plugin_V31nd_array_port (ADComponent)
NDArrayPort- [NDArrayPort r/w stringout]
asyn port name for NDArray driver that will make callbacks to this plugin. This port can be changed at run time, connecting the plugin to a different NDArray driver.
config
Inherited from
HDF5Plugin_V31ndimensions (ADComponent)
NDimensionsnormal
Inherited from
HDF5Plugin_V31plugin_type (ADComponent)
EpicsSignalROPluginType_RBV[PluginType_RBV r/o stringin] A string describing the plugin type.
config
Inherited from
HDF5Plugin_V31queue_free (ADComponent)
EpicsSignalQueueFree[QueueFree r/o longin] The number of free queue elements.
normal
Inherited from
HDF5Plugin_V31queue_free_low (ADComponent)
EpicsSignalQueueFreeLownormal
Inherited from
HDF5Plugin_V31queue_size (ADComponent)
QueueSize[QueueSize r/o longin] The total queue size for callbacks when BlockingCallbacks=0.
normal
Inherited from
HDF5Plugin_V31queue_use (ADComponent)
EpicsSignalQueueUse[QueueUse r/o calc] The number of used queue elements.
normal
Inherited from
HDF5Plugin_V31queue_use_high (ADComponent)
EpicsSignalQueueUseHIGHnormal
Inherited from
HDF5Plugin_V31queue_use_hihi (ADComponent)
EpicsSignalQueueUseHIHInormal
Inherited from
HDF5Plugin_V31time_stamp (ADComponent)
EpicsSignalROTimeStamp_RBV[TimeStamp_RBV r/o ai] Time stamp number of last NDArray callback data
normal
Inherited from
HDF5Plugin_V31unique_id (ADComponent)
EpicsSignalROUniqueId_RBV[UniqueId_RBV r/o longin] Unique ID number of last NDArray callback data
normal
Inherited from
HDF5Plugin_V31boundary_align (ADComponent)
BoundaryAlign- [BoundaryAlign r/w longout]
Set the disk boundary alignment in bytes. This parameter can be used to optimise file I/O performance on some file systems. For instance on the Lustre file system where the it is optimal to align data to the ‘stripe size’ (default 1MB).
This parameter applies to all datasets in the file.
Setting this parameter to 0 disables use of disk boundary alignment.
- Warning: setting this parameter to a larger size than the size of a single chunk
will cause datafiles to grow larger than the actual contained data.
config
Inherited from
HDF5Plugin_V31boundary_threshold (ADComponent)
BoundaryThreshold- [BoundaryThreshold r/w longout]
Set a minimum size (bytes) of chunk or dataset where boundary alignment is to be applied. This can be used to filter out small datasets like NDAttributes from the boundary alignment as it could blow up the file size.
Setting this parameter to 0 will disable the use of boundary alignment
config
Inherited from
HDF5Plugin_V31compression (ADComponent)
Compression[Compression r/w mbbo] Select or switch off compression filter
config
Inherited from
HDF5Plugin_V31data_bits_offset (ADComponent)
DataBitsOffset[DataBitsOffset r/w longout] N-bit compression filter: dataword bit-offset in pixel
config
Inherited from
HDF5Plugin_V31extra_dim_name (DDC)
ExtraDimName(See below)
normal
Inherited from
HDF5Plugin_V31extra_dim_size (DDC)
ExtraDimSize(See below)
normal
Inherited from
HDF5Plugin_V31io_speed (ADComponent)
EpicsSignalIOSpeed[IOSpeed r/o ai] Overall IO write speed in megabit per second from first frame to file closed
config
Inherited from
HDF5Plugin_V31num_col_chunks (ADComponent)
NumColChunks- [NumColChunks r/w longout]
Configure HDF5 “chunking” to approriate size for the filesystem: sets number of columns to use per chunk
config
Inherited from
HDF5Plugin_V31num_data_bits (ADComponent)
NumDataBits[NumDataBits r/w longout] N-bit compression filter: number of data bits per pixel
config
Inherited from
HDF5Plugin_V31num_extra_dims (ADComponent)
NumExtraDims[NumExtraDims r/w mbbo] Number of extra dimensions [0..2]
config
Inherited from
HDF5Plugin_V31num_frames_chunks (ADComponent)
NumFramesChunks- [NumFramesChunks r/w longout]
Configure HDF5 “chunking” to approriate size for the filesystem: sets number of frames to use per chunk. For a 2D image, setting this parameter > 1 essentially implies using in-memory cache as HDF5 only writes full chunks to disk.
config
Inherited from
HDF5Plugin_V31num_frames_flush (ADComponent)
NumFramesFlush- [NumFramesFlush r/w longout]
Flush the file metadata to disk every N’th frame. Image data is written to disk on every write operation, but HDF5 internal metadata to describe the data layout and indices is normally only written at close time.
config
Inherited from
HDF5Plugin_V31num_row_chunks (ADComponent)
NumRowChunks- [NumRowChunks r/w longout]
Configure HDF5 “chunking” to approriate size for the filesystem: sets number of rows to use per chunk
config
Inherited from
HDF5Plugin_V31run_time (ADComponent)
EpicsSignalRunTimeconfig
Inherited from
HDF5Plugin_V31szip_num_pixels (ADComponent)
SZipNumPixels[SZipNumPixels r/w longout] szip compression filter: number of pixels in filter [1..32]
config
Inherited from
HDF5Plugin_V31store_attr (ADComponent)
StoreAttr0=’No’ 1=’Yes’
config
Inherited from
HDF5Plugin_V31store_perform (ADComponent)
StorePerform0=’No’ 1=’Yes’
config
Inherited from
HDF5Plugin_V31zlevel (ADComponent)
ZLevel[ZLevel r/w longout] zlib compression filter: compression level [1..9]
config
Inherited from
HDF5Plugin_V31epics_ts_sec (ADComponent)
EpicsSignalROEpicsTSSec_RBVnormal
Inherited from
HDF5Plugin_V31epics_ts_nsec (ADComponent)
EpicsSignalROEpicsTSNsec_RBVnormal
Inherited from
HDF5Plugin_V31lazy_open (ADComponent)
LazyOpen0=’No’ 1=’Yes’
normal
Inherited from
HDF5Plugin_V31xml_error_msg (ADComponent)
EpicsSignalROXMLErrorMsg_RBV[XMLErrorMsg_RBV r/o waveform] XML parser error message
normal
Inherited from
HDF5Plugin_V31xml_file_name (ADComponent)
XMLFileName- [XMLFileName r/w waveform]
XML filename, pointing to an XML HDF5 Layout Definition This waveform also supports loading raw XML code directly; up to a maximum of 1MB long (NELM=1MB)
config
Inherited from
HDF5Plugin_V31xml_valid (ADComponent)
EpicsSignalROXMLValid_RBV0=’No’ 1=’Yes’
normal
Inherited from
HDF5Plugin_V31ad_core_version (ADComponent)
EpicsSignalROADCoreVersion_RBVnormal
Inherited from
HDF5Plugin_V31array_callbacks (ADComponent)
ArrayCallbacks0=’Disable’ 1=’Enable’
normal
Inherited from
HDF5Plugin_V31array_size_int (ADComponent)
EpicsSignalROArraySize_RBV[ArraySize_RBV r/o longin] Total size of the array data in bytes
normal
Inherited from
HDF5Plugin_V31array_size_xyz (DDC)
ArraySizeXyz(See below)
normal
Inherited from
HDF5Plugin_V31create_directory (ADComponent)
CreateDirectoryconfig
Inherited from
HDF5Plugin_V31temp_suffix (ADComponent)
TempSuffixnormal
Inherited from
HDF5Plugin_V31nd_attribute_chunk (ADComponent)
NDAttributeChunknormal
Inherited from
HDF5Plugin_V31dim_att_datasets (ADComponent)
DimAttDatasets0=’No’ 1=’Yes’
normal
Inherited from
HDF5Plugin_V31fill_value (ADComponent)
FillValuenormal
Inherited from
HDF5Plugin_V31position_mode (ADComponent)
PositionMode0=’Off’ 1=’On’
normal
Inherited from
HDF5Plugin_V31swmr_active (ADComponent)
EpicsSignalROSWMRActive_RBV0=’Off’ 1=’Active’
normal
Inherited from
HDF5Plugin_V31swmr_cb_counter (ADComponent)
EpicsSignalROSWMRCbCounter_RBVnormal
Inherited from
HDF5Plugin_V31swmr_mode (ADComponent)
SWMRMode0=’Off’ 1=’On’
normal
Inherited from
HDF5Plugin_V31swmr_supported (ADComponent)
EpicsSignalROSWMRSupported_RBV0=’Not Supported’ 1=’Supported’
normal
Inherited from
HDF5Plugin_V31extra_dim_chunk (DDC)
ExtraDimChunk(See below)
normal
Inherited from
HDF5Plugin_V31pos_index_dim (DDC)
PosIndexDim(See below)
normal
Inherited from
HDF5Plugin_V31pos_name_dim (DDC)
PosNameDim(See below)
normal
Inherited from
HDF5Plugin_V31driver_version (ADComponent)
EpicsSignalRODriverVersion_RBVnormal
Inherited from
HDF5Plugin_V31execution_time (ADComponent)
EpicsSignalROExecutionTime_RBVnormal
Inherited from
HDF5Plugin_V31array_size_all (DDC)
ArraySizeAll(See below)
normal
Inherited from
HDF5Plugin_V31disordered_arrays (ADComponent)
DisorderedArraysnormal
Inherited from
HDF5Plugin_V31dropped_output_arrays (ADComponent)
DroppedOutputArraysnormal
Inherited from
HDF5Plugin_V31max_threads (ADComponent)
EpicsSignalROMaxThreads_RBVnormal
Inherited from
HDF5Plugin_V31nd_attributes_macros (ADComponent)
EpicsSignalNDAttributesMacrosnormal
Inherited from
HDF5Plugin_V31nd_attributes_status (ADComponent)
EpicsSignalNDAttributesStatus0=’Attributes file OK’ 1=’File not found’ 2=’XML syntax error’ 3=’Macro substitution error’
normal
Inherited from
HDF5Plugin_V31num_threads (ADComponent)
NumThreadsnormal
Inherited from
HDF5Plugin_V31process_plugin (ADComponent)
EpicsSignalProcessPluginnormal
Inherited from
HDF5Plugin_V31sort_free (ADComponent)
EpicsSignalSortFreenormal
Inherited from
HDF5Plugin_V31sort_free_low (ADComponent)
EpicsSignalSortFreeLownormal
Inherited from
HDF5Plugin_V31sort_mode (ADComponent)
SortMode0=Unsorted 1=Sorted
normal
Inherited from
HDF5Plugin_V31sort_size (ADComponent)
SortSizenormal
Inherited from
HDF5Plugin_V31sort_time (ADComponent)
SortTimenormal
Inherited from
HDF5Plugin_V31HDF5FileStore.array_size (DDC) Dynamic Device Components Attribute
Class
Suffix
Docs
Kind
Notes
depth
EpicsSignalROArraySize2_RBVconfig
Inherited from
HDF5Plugin_V31height
EpicsSignalROArraySize1_RBVconfig
Inherited from
HDF5Plugin_V31width
EpicsSignalROArraySize0_RBVconfig
Inherited from
HDF5Plugin_V31HDF5FileStore.dim_sa (DDC) Dynamic Device Components Attribute
Class
Suffix
Docs
Kind
Notes
dim0_sa
Dim0SAconfig
Inherited from
HDF5Plugin_V31dim1_sa
Dim1SAconfig
Inherited from
HDF5Plugin_V31dim2_sa
Dim2SAconfig
Inherited from
HDF5Plugin_V31dim3_sa
Dim3SAconfig
dim4_sa
Dim4SAconfig
dim5_sa
Dim5SAconfig
dim6_sa
Dim6SAconfig
dim7_sa
Dim7SAconfig
dim8_sa
Dim8SAconfig
dim9_sa
Dim9SAconfig
HDF5FileStore.extra_dim_name (DDC) Dynamic Device Components Attribute
Class
Suffix
Docs
Kind
Notes
name_3
EpicsSignalROExtraDimName3_RBVconfig
name_4
EpicsSignalROExtraDimName4_RBVconfig
name_5
EpicsSignalROExtraDimName5_RBVconfig
name_6
EpicsSignalROExtraDimName6_RBVconfig
name_7
EpicsSignalROExtraDimName7_RBVconfig
name_8
EpicsSignalROExtraDimName8_RBVconfig
name_9
EpicsSignalROExtraDimName9_RBVconfig
name_x
EpicsSignalROExtraDimNameX_RBVconfig
name_y
EpicsSignalROExtraDimNameY_RBVconfig
name_n
EpicsSignalROExtraDimNameN_RBVconfig
HDF5FileStore.extra_dim_size (DDC) Dynamic Device Components Attribute
Class
Suffix
Docs
Kind
Notes
size_3
ExtraDimSize3config
size_4
ExtraDimSize4config
size_5
ExtraDimSize5config
size_6
ExtraDimSize6config
size_7
ExtraDimSize7config
size_8
ExtraDimSize8config
size_9
ExtraDimSize9config
size_x
ExtraDimSizeXconfig
size_y
ExtraDimSizeYconfig
size_n
ExtraDimSizeNconfig
HDF5FileStore.array_size_xyz (DDC) Dynamic Device Components Attribute
Class
Suffix
Docs
Kind
Notes
array_size_x
EpicsSignalROArraySizeX_RBVconfig
array_size_y
EpicsSignalROArraySizeY_RBVconfig
array_size_z
EpicsSignalROArraySizeZ_RBVconfig
HDF5FileStore.extra_dim_chunk (DDC) Dynamic Device Components Attribute
Class
Suffix
Docs
Kind
Notes
chunk_3
ExtraDimChunk3config
chunk_4
ExtraDimChunk4config
chunk_5
ExtraDimChunk5config
chunk_6
ExtraDimChunk6config
chunk_7
ExtraDimChunk7config
chunk_8
ExtraDimChunk8config
chunk_9
ExtraDimChunk9config
chunk_x
ExtraDimChunkXconfig
chunk_y
ExtraDimChunkYconfig
HDF5FileStore.pos_index_dim (DDC) Dynamic Device Components Attribute
Class
Suffix
Docs
Kind
Notes
dim_3
PosIndexDim3config
dim_4
PosIndexDim4config
dim_5
PosIndexDim5config
dim_6
PosIndexDim6config
dim_7
PosIndexDim7config
dim_8
PosIndexDim8config
dim_9
PosIndexDim9config
dim_x
PosIndexDimXconfig
dim_y
PosIndexDimYconfig
dim_n
PosIndexDimNconfig
HDF5FileStore.pos_name_dim (DDC) Dynamic Device Components Attribute
Class
Suffix
Docs
Kind
Notes
dim_3
PosNameDim3config
dim_4
PosNameDim4config
dim_5
PosNameDim5config
dim_6
PosNameDim6config
dim_7
PosNameDim7config
dim_8
PosNameDim8config
dim_9
PosNameDim9config
dim_x
PosNameDimXconfig
dim_y
PosNameDimYconfig
dim_n
PosNameDimNconfig
HDF5FileStore.array_size_all (DDC) Dynamic Device Components Attribute
Class
Suffix
Docs
Kind
Notes
array_size0
ArraySize0config
array_size1
ArraySize1config
array_size2
ArraySize2config
array_size3
ArraySize3config
array_size4
ArraySize4config
array_size5
ArraySize5config
array_size6
ArraySize6config
array_size7
ArraySize7config
array_size8
ArraySize8config
array_size9
ArraySize9config
Methods
- collect_asset_docs()
- configure(d: Dict[str, Any]) Tuple[Dict[str, Any], Dict[str, Any]]
Configure the device for something during a run
This default implementation allows the user to change any of the
configuration_attrs. Subclasses might override this to perform additional input validation, cleanup, etc.- Parameters:
d (dict) – The configuration dictionary. To specify the order that the changes should be made, use an OrderedDict.
- Returns:
(old, new) tuple of dictionaries
Where old and new are pre- and post-configure configuration states.
- describe()
Provide schema and meta-data for
read().This keys in the
OrderedDictthis method returns must match the keys in theOrderedDictreturn byread().This provides schema related information, (ex shape, dtype), the source (ex PV name), and if available, units, limits, precision etc.
- Returns:
data_keys (OrderedDict) – The keys must be strings and the values must be dict-like with the
event_model.event_descriptor.data_keyschema.
- disable_on_stage()
when the plugin is staged, ensure that it is disabled.
a convenience method for adding
`('enable', 0)to stage_sigs
- enable_on_stage()
when the plugin is staged, ensure that it is enabled.
a convenience method for adding (‘enable’, 1) to stage_sigs
- ensure_blocking()
Ensure that if plugin is enabled after staging, callbacks block.
a convenience method for adding
`('blocking_callbacks', 1)to stage_sigs
- ensure_nonblocking()
Ensure that if plugin is enabled after staging, callbacks don’t block.
a convenience method for adding
`('blocking_callbacks', 0)to stage_sigs
- find_signal(text, use_re=False, case_sensitive=False, match_fcn=None, f=<_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'>)
Search through the signal docs on this detector for the string text
- Parameters:
text (str) – Text to find
use_re (bool, optional) – Use regular expressions
case_sensitive (bool, optional) – Case sensitive search
match_fcn (callable, optional) – Function to call when matches are found Defaults to a function that prints matches to f
f (file-like, optional) – File-like object that the default match function prints to (Defaults to sys.stdout)
- generate_datum(key, timestamp, datum_kwargs)
Generate a uid and cache it with its key for later insertion.
- get(**kwargs)
Get the value of all components in the device
Keyword arguments are passed onto each signal.get(). Components beginning with an underscore will not be included.
- get_asyn_digraph()
Get the directed graph of the ASYN ports
- Returns:
G (networkx.DiGraph) – Directed graph of pipelines
port_map (dict) – Mapping between port_name and ADBase objects
- get_asyn_port_dictionary()
Return port name : component map
- Returns:
port_map (dict) – Mapping between port_name and ADBase objects
- get_frames_per_point()
- get_plugin_by_asyn_port(port_name)
Get the plugin which has the given asyn port name
- Parameters:
port_name (str) – The port name to search for
- Returns:
ret (ADBase or None) – Either the requested plugin or None if not found
- missing_plugins()
Find missing ports
- read()
Read data from the device.
This method is expected to be as instantaneous as possible, with any substantial acquisition time taken care of in
trigger().The
OrderedDictreturned by this method must have identical keys (in the same order) as theOrderedDictreturned bydescribe().By convention, the first key in the return is the ‘primary’ key and maybe used by heuristics in
bluesky.The values in the ordered dictionary must be dict (-likes) with the keys
{'value', 'timestamp'}. The'value'may have any type, the timestamp must be a float UNIX epoch timestamp in UTC.- Returns:
data (OrderedDict) – The keys must be strings and the values must be dict-like with the keys
{'value', 'timestamp'}
- read_configuration()
Dictionary mapping names to value dicts with keys: value, timestamp
To control which fields are included, change the Component kinds on the device, or modify the
configuration_attrslist.
- stop(*, success=False)
Stop the Device and all (instantiated) subdevices
- summary()
- trigger() StatusBase
Trigger the device and return status object.
This method is responsible for implementing ‘trigger’ or ‘acquire’ functionality of this device.
If there is an appreciable time between triggering the device and it being able to be read (via the
read()method) then this method is also responsible for arranging that theStatusBaseobject returned by this method is notified when the device is ready to be read.If there is no delay between triggering and being readable, then this method must return a
StatusBaseobject which is already completed.- Returns:
status (StatusBase) –
StatusBaseobject which will be marked as complete when the device is ready to be read.
- validate_asyn_ports()
Validate that all components of pipeline are known
- Raises:
RuntimeError – If there any input ports to known plugins where the source is not known to ophyd
- visualize_asyn_digraph(ax=None, *args, **kwargs)
This generates a figure showing the current asyn port layout.
This method generates a plot showing all of the currently enabled Areadetector plugin asyn ports and their relationships. The current ports and relationships are found using self.get_asyn_digraph.
- Parameters:
ax (matplotlib axes) – if None (default) then a new figure is created otherwise it is plotted on the specified axes.
*args (networkx.draw_networkx args and kwargs.) – For the allowed args and kwargs see the networkx.draw_networkx documentation
**kwargs (networkx.draw_networkx args and kwargs.) –
For the allowed args and kwargs see the networkx.draw_networkx documentation
- warmup()
A convenience method for ‘priming’ the plugin.
The plugin has to ‘see’ one acquisition before it is ready to capture. This sets the array size, etc.
Attributes
- ad_root
- array_pixels
The total number of pixels, calculated from array_size
- configuration_attrs
- connected
- file_number_sync = None
- file_number_write = None
- fs_root
The ‘root’ put into the Asset registry, use reg_root
- Type:
DEPRECATED
- hints
- kind
- read_path_template
Returns write_path_template if read_path_template is not set
- reg_root
The ‘root’ put into the Asset Registry
- source_plugin
The PluginBase object that is the asyn source for this plugin.
- write_path_template