Skip to content

Constants

INDEX_NAMES

micro_reader.INDEX_NAMES
# ('plate', 'acquisition', 'well', 'field',
#  'series', 'tile', 'rotation', 'view', 'illumination', 'phase', 'block',
#  'emission', 'excitation', 'lifetime', 'sequence', 'part', 'resolution')

Every index name, outermost first. File.select() and Field.select() accept these names. File.select() also takes the row and column of a plate and the name keywords plate_name, acquisition_name, well_name, row_name and column_name. These are not index names, because they are not on the images. The Concepts page explains each index.

PLATE_INDICES

micro_reader.PLATE_INDICES
# ('plate', 'acquisition', 'well', 'field')

The indices that every image of a plate has. plate and acquisition are 0 when a file holds one of each.

SAMPLED_INDICES

micro_reader.SAMPLED_INDICES
# ('illumination', 'phase', 'block', 'emission', 'excitation', 'lifetime', 'sequence')

These indices are dimensions that are sampled at the same points, and they are not separate frames. Other readers often keep them as array axes. They are the keys that open(rename=...) accepts.

BACKENDS

[b.NAME for b in micro_reader.BACKENDS]
# ['vsi', 'flex', 'tiff', 'czi', 'luxendo', 'bdv', 'ilastik', 'hdf5', 'ims', 'nd2', 'oir',
#  'omp2info', 'oif', 'lif', 'harmony', 'columbus', 'scanr', 'cellomics', 'jdce',
#  'metaxpress', 'metamorph', 'micromanager', 'incell', 'cv7000', 'companion',
#  'ndpis', 'ics', 'raster', 'klb', 'dv', 'mrc']

The backend modules, in the order in which they are tried when a format is detected. The NAME of a backend is what open(backend=...) takes and what File.backend reports. The modules themselves are internal, so use only NAME.

__version__

micro_reader.__version__      # for example '0.4.4'

The installed package version.

Environment variables

Variable Effect Default
MICRO_READER_MEMORY_LIMIT Sets the default of memory_limit(). ΒΌ of RAM
MICRO_READER_CACHE_LIMIT Sets the default of cache_limit(). 256MB
MICRO_READER_DECODE_THREADS Sets the default of decode_threads(). The number of CPUs
MICRO_READER_SKIP_EUBI_CHECK The value 1 skips the import check that refuses to load next to an eubi-bridge older than 0.3.0, which reads the old index name scene. One warning is issued instead. Any other value keeps the check. It is meant for work on an eubi checkout only. Unset

The first three are read the first time the setting is needed, so set them before the first read. A value that is not a size, or for threads not a number, raises ValueError at that point. set_memory_limit(None) and set_cache_limit(None) read their variable again. set_decode_threads takes a number only, and None raises TypeError.