PyDataSource
PyDataSource
Section titled “PyDataSource”#include <pysbio/pydatasource.hh>class PyDataSourceDefined in src/lib/pysbio/pydatasource.hh:128
Public Methods
Section titled “Public Methods”| Return | Name | Description |
|---|---|---|
PyDataSource |
||
PyDataSource |
||
py::object |
group |
|
std::size_t |
next |
|
std::unique_ptr< StepIterator > |
steps |
|
std::unique_ptr< ZipIterator > |
zip |
|
DataSourceV & |
ds inline |
PyDataSource
Section titled “PyDataSource”PyDataSource(std::string exp, unsigned run, int evt_per_read, int dgram_size, pysbio::FTraits data_fmt = pysbio::FTraits::XTC2, pysbio::ExecutionPolicy epolicy = pysbio::ExecutionPolicy::MPI, py::dict exec_cfg = py::dict(), pysbio::IOPolicy io_policy = pysbio::IOPolicy::SyncPOSIX)Defined in src/lib/pysbio/pydatasource.hh:130
PyDataSource
Section titled “PyDataSource”PyDataSource(DataSourceV ds, std::string exp, unsigned run, std::shared_ptr< ContextWrapper > context)Defined in src/lib/pysbio/pydatasource.hh:139
py::object group(py::module & m, const char * name)Defined in src/lib/pysbio/pydatasource.hh:144
std::size_t next()Defined in src/lib/pysbio/pydatasource.hh:146
std::unique_ptr< StepIterator > steps(bool batched, std::size_t batch_size)Defined in src/lib/pysbio/pydatasource.hh:148
std::unique_ptr< ZipIterator > zip(const std::vector< py::object > & groups, bool batched)Defined in src/lib/pysbio/pydatasource.hh:150
inline
inline DataSourceV & ds()Defined in src/lib/pysbio/pydatasource.hh:155
Private Attributes
Section titled “Private Attributes”| Return | Name | Description |
|---|---|---|
DataSourceV |
m_ds |
|
std::string |
m_exp |
|
unsigned |
m_run |
|
std::shared_ptr< ContextWrapper > |
m_context |
DataSourceV m_dsType: DataSourceV
Defined in src/lib/pysbio/pydatasource.hh:158
std::string m_expDefined in src/lib/pysbio/pydatasource.hh:160
unsigned m_runDefined in src/lib/pysbio/pydatasource.hh:161
m_context
Section titled “m_context”std::shared_ptr< ContextWrapper > m_context {}Type: std::shared_ptr< ContextWrapper >
Defined in src/lib/pysbio/pydatasource.hh:163