EmTableModel¶
- 
class 
emvis.models.EmTableModel(tableSource, **kwargs)¶ Implementation of TableModel for EM formats using a emc.Table object to parse the data.
- 
__init__(tableSource, **kwargs)¶ Create a new instance of EmTableModel.
- Parameters
 tableSource –
Input from where table will be retrieved, it can be one of the following options:
- emc.Table: just a single table that will be used, not
 other tables will be loaded in this case
- string: This should be the path from where to read
 the table(s). The first table will be loaded by default.
- tuple (string, string): Here you can specify the path and
 the name of the table that you want to be loaded by default.
- Keyword Arguments
 Provide an ImageManager that can be used (imageManager=value) – to read images referenced from this table.
- 
getColumnsCount()¶ Return the number of columns.
- 
getData(row, col)¶ Return the data (array like) for the item in this row, column. Used by rendering of images in a given cell of the table.
- 
getRowsCount()¶ Return the number of rows.
- 
getValue(row, col)¶ Return the value of the item in this row, column.
- 
iterColumns()¶ Iterated over the current ColumnInfo’s of the model.
- 
 
EmStackModel¶
- 
class 
emvis.models.EmStackModel(path, **kwargs)¶ The EmStackModel class provides the basic functionality for image stack. The following methods are wrapped directly from SlicesModel:
getDim
getData
getLocation
getImageModel
- 
__init__(path, **kwargs)¶ Constructs an EmStackModel. Note that you can specify the path and/or SlicesModel. :param path: (str) The image path :param kwargs:
- slicesModel(SlicesModel) The SlicesModel from which this
 EmStackModel will be created.
- columnName(str) The column name for image column.
 if columnName is None, then ‘Image’ will be used.
- imageManager=value Provide an ImageManager that can be used
 to read images referenced from this table.
- 
getData(i=-1)¶ Return a 2D array of the slice data. i should be in -1 or (0, n-1). -1 is a special case for returning the whole data array.
- 
getLocation()¶ Returns the image location(the image path).
EmVolumeModel¶
- 
class 
emvis.models.EmVolumeModel(path, data=None, **kwargs)¶ The EmVolumeModel class provides the basic functionality for image volume
- 
__init__(path, data=None, **kwargs)¶ Constructs an EmVolumeModel. :param path: (str) The volume path :param data: (numpy array) The volume data :param kwargs:
- imageManager=value Provide an ImageManager that can be used
 to read images referenced from this table.
- 
 
EmListModel¶
- 
class 
emvis.models.EmListModel(files, **kwargs)¶ The EmListModel class provides the basic functionality for create models or read data from the list of file paths
- 
__init__(files, **kwargs)¶ Create an EmListModel :param files: (list) A list of file path :param kwargs:
- imageManager(ImageManager) The ImageManager instance that can
 be used to read images referenced from this list
imagePrefixes: (list) The list of image prefixes
- 
getData(row, col=0)¶ Return the data (array like) for the item in this row, column. Used by rendering of images in a given cell of the table.
- 
getModel(row)¶ Return the model for the given row
- 
getRowsCount()¶ Return the number of rows.
- 
getValue(row, col)¶ Return the value of the item in this row, column.
- 
iterColumns()¶ Iterated over the current ColumnInfo’s of the model.
-