Utilities#
Assists measurement, data exploration, and the user experience.
For complete API details see the Full API Reference.
Also consult the Index under the apstools heading for links to the Exceptions, and Utilities described here.
Utilities by Activity#
APS Data Management#
return the APS DM Catalog API object |
|
return the APS DM Data Acquisition API object |
|
return the APS DM Dataset Metadata Catalog API object |
|
return the APS DM Data Storage API object |
|
return the APS DM File API object |
|
return the APS DM Metadata Catalog Service API object |
|
return the APS DM Processing API object |
|
set up this session for APS Data Management |
|
track one or more APS DM workflows for bluesky plans |
Finding#
find the ophyd object associated with the given ophyd name |
|
find all ophyd objects associated with the given EPICS PV |
|
return a dictionary of databroker catalogs in the default namespace |
Listing#
describe signal information from a device in a pandas DataFrame |
|
show all ophyd Signal and Device objects defined as globals |
|
list all plans |
|
list all keys (column names) in a scan’s stream |
|
list runs from a catalog according to some options |
|
list runs from catalog |
Reporting#
record logging output to a file |
|
return a path to |
|
print the RunEngine metadata in a table |
|
record all input and output from the IPython console |
|
slit size and center as a named tuple |
|
record logging output to a stream such as the console |
Other Utilities#
return the index of the first occurrence of value in an array |
|
convert text so it can be used as a dictionary key |
|
given a list of EPICS PV names, return a dict of EpicsSignal objects |
|
import the object given its import path as text |
|
send email notifications when requested |
|
conversion factor between FWHM and standard deviation |
|
assess apparent FWHM by inspecting the data |
|
plot y vs x from a bluesky run |
|
get the first live plot matching a signal |
|
get the matplotlib Figure window for y vs x |
|
replot with at most the last n lines, by figure name |
|
replot with at most the last n lines for given x and y axes |
|
ensure a string does not exceed EPICS PV length |
|
convert Python timestamp (float) to ISO 8601 time in current time zone |
|
run a UNIX command, return (stdout, stderr) |
|
warn if not on APS-U controls subnet |
|
compute statistical measures of a 1-D array using numpy |
General#
get the names of all function parameters supplied by the caller |
|
convert text so it can be used as a dictionary key |
|
format a command list as a pyRestTable table object |
|
given a list of EPICS PV names, return a dict of EpicsSignal objects |
|
copy filtered runs from source catalog to target catalog |
|
search the databroker v2 database |
|
return a text table from a dictionary |
|
import the object given its import path as text |
|
send email notifications when requested |
|
base class: read-only support for Excel files as databases |
|
generic read-only handling of Excel spreadsheet-as-database |
|
exception when reading Excel spreadsheet |
|
find the ophyd object associated with the given ophyd name |
|
find all ophyd objects associated with the given EPICS PV |
|
return a dictionary of databroker catalogs in the default namespace |
|
return the full dotted name of an ophyd object |
|
return the names of run’s detector and motor signals |
|
return a catalog object |
|
return a bluesky database using keyword guides or default choice |
|
return the default databroker catalog |
|
find the default database (has the most recent run) |
|
get the IPython shell’s namespace dictionary |
|
get the run’s data |
|
get value of key in run stream |
|
get values from a previous scan stream in a databroker catalog |
|
return the name of the current IPython profile |
|
format a list of items |
|
describe signal information from a device in a pandas DataFrame |
|
show all ophyd Signal and Device objects defined as globals |
|
list all plans |
|
list all keys (column names) in a scan’s stream |
|
list runs from a catalog according to some options |
|
list runs from catalog |
|
dictionary with keys accessible as attributes (read-only) |
|
define parameters that can be overridden from a user configuration file |
|
break a list into pairs |
|
plot y vs x from a bluesky run |
|
print the RunEngine metadata in a table |
|
print table of different key values and how many times each appears |
|
set EPICS motor record’s user coordinate to a new position |
|
round floating-point numbers to significant figures |
|
replay the document stream from one or more scans |
|
return memory used by this process |
|
decorator: run a function in a thread |
|
make text safe to be used as an ophyd object name |
|
get the first live plot matching a signal |
|
get the matplotlib Figure window for y vs x |
|
split a line into words, some of which may be quoted |
|
a MutableMapping which syncs its contents to storage |
|
report bluesky run metrics from the databroker |
|
encode source using the default codepoint |
|
convert bytes to unicode |
|
replot with at most the last n lines, by figure name |
|
replot with at most the last n lines for given x and y axes |
|
ensure a string does not exceed EPICS PV length |
|
run a UNIX command, return (stdout, stderr) |