pysbio
pysbio
Section titled “pysbio”Classes
Section titled “Classes”| Name | Description |
|---|---|
PyDataSource |
|
PyExecution |
A minimal trampoline class for allowing Python Execution policy subclassing. |
AlgWrapper |
|
BrokerGroupWrapper |
Enumerations
Section titled “Enumerations”| Name | Description |
|---|---|
StorageRole |
|
StorageHint |
|
ExecutionPolicy |
|
FTraits |
|
IOPolicy |
StorageRole
Section titled “StorageRole”enum StorageRole| Value | Description |
|---|---|
UNKNOWN |
|
Metadata |
|
Data |
|
Index |
|
Group |
|
Table |
StorageHint
Section titled “StorageHint”enum StorageHint| Value | Description |
|---|---|
NONE |
|
Shareable |
|
DeviceBound |
|
DoubleBuffered |
ExecutionPolicy
Section titled “ExecutionPolicy”enum ExecutionPolicy| Value | Description |
|---|---|
Serial |
|
Threaded |
|
MPI |
|
MPIThreaded |
FTraits
Section titled “FTraits”enum FTraits| Value | Description |
|---|---|
XTC1 |
|
XTC2 |
IOPolicy
Section titled “IOPolicy”enum IOPolicy| Value | Description |
|---|---|
SyncPOSIX |
Functions
Section titled “Functions”| Return | Name | Description |
|---|---|---|
py::object |
wrap_xtc_detector |
|
std::map< std::string, std::vector< std::string > > |
alg_fields |
Process the metadata from various StreamBrokers for a detector of the given name. |
wrap_xtc_detector
Section titled “wrap_xtc_detector”py::object wrap_xtc_detector(py::module & m, BrokerGroupV detv)alg_fields
Section titled “alg_fields”std::map< std::string, std::vector< std::string > > alg_fields(BrokerPtrV brokersv, const char * detector_name, std::size_t num_brokers, std::string & serial_number_out)Process the metadata from various StreamBrokers for a detector of the given name.
This utility traverse the internal metadata structures and recomposes them into a more friendly STL mapping for algorithms and data access fields. It will also determine and format the serial number for the detector (if applicable).
Returns
Section titled “Returns”A map of algorithm names to all the data fields under them. I.e. a lookup of the form:
Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
brokersv |
BrokerPtrV |
The set of StreamBrokers managing the detector. |
detector_name |
const char * |
The name of the detector to find metadata for. |
num_brokers |
std::size_t |
The total number of StreamBrokers managing the detector. |
serial_number_out |
std::string & |
Where to write the formatted serial number. |