pyworkflow.utils.dataset module¶
# JMRT (2018-12-11) This module is almost not used at all. Maybe it can be removed in a future. Just kept here for the moment inside pw.utils and not imported by default
- class pyworkflow.utils.dataset.Column(colName, colType=None, default=None, label=None, renderType=0)[source]¶
Bases:
object
- class pyworkflow.utils.dataset.DataSet(tables, tableName=None, volumeName=None, numberSlices=0)[source]¶
Bases:
object
Holds several Tables All tables should have an unique tableName.
- class pyworkflow.utils.dataset.SingleFileDataSet(filename)[source]¶
Bases:
pyworkflow.utils.dataset.DataSet
DataSet implementation for single files such as Images or Volumes.
- class pyworkflow.utils.dataset.SqliteDataSet(filename)[source]¶
Bases:
pyworkflow.utils.dataset.DataSet
Provide a DataSet implementation based on sqlite file. The tables of the dataset will be the object tables in database. Each block is a table on the dataset.
- class pyworkflow.utils.dataset.Table(*columns)[source]¶
Bases:
object
Table to hold rows of data. A table contains a list of columns.
- addRow(rowId, **values)[source]¶
With this implementation the rowId should be provided. We need to work around to also allow automatic generation of id’s
- getIndexFromValue(value, label)[source]¶
Search the element that has property ‘label’ equals to value and returns its index.