dacapo.experiments.datasplits.datasets.arrays.numpy_array
Module Contents
Classes
This is just a wrapper for a numpy array to make it fit the DaCapo Array interface. |
- class dacapo.experiments.datasplits.datasets.arrays.numpy_array.NumpyArray(array_config)
This is just a wrapper for a numpy array to make it fit the DaCapo Array interface.
- property attrs
Return a dictionary of metadata attributes stored on this array.
- property axes
Returns the axes of this dataset as a string of charactes, as they are indexed. Permitted characters are:
zyxfor spatial dimensionscfor channelssfor samples
- property dims
Returns the number of spatial dimensions.
- property voxel_size
The size of a voxel in physical units.
- property roi
The total ROI of this array, in world units.
- property writable: bool
Can we write to this Array?
- property data
Get a numpy like readable and writable view into this array.
- property dtype
The dtype of this array, in numpy dtypes
- property num_channels
The number of channels provided by this dataset. Should return None if the channel dimension doesn’t exist.
- classmethod from_gp_array(array: gunpowder.Array)
- classmethod from_np_array(array: numpy.ndarray, roi, voxel_size, axes)