dacapo.experiments.arraytypes.arraytype
Classes
The type of data provided by an array. The ArrayType class helps to keep |
Module Contents
- class dacapo.experiments.arraytypes.arraytype.ArrayType
The type of data provided by an array. The ArrayType class helps to keep track of the semantic meaning of an Array. Additionally the ArrayType keeps track of metadata that is specific to this datatype such as num_classes for an annotated volume or channel names for intensity arrays. The ArrayType class is an abstract class and should be subclassed to represent different types of arrays.
- num_classes
The number of classes in the array.
- Type:
int
- channel_names
The names of the channels in the array.
- Type:
List[str]
- interpolatable()
This is an abstract method which should be overridden in each of the subclasses to determine if an array is interpolatable or not.
Note
This class is used to create an ArrayType object which is used to represent the type of data provided by an array.
- property interpolatable: bool
- Abstractmethod:
This is an abstract method which should be overridden in each of the subclasses to determine if an array is interpolatable or not.
- Returns:
True if the array is interpolatable, False otherwise.
- Return type:
bool
- Raises:
NotImplementedError – This method is not implemented in this class.
Examples
>>> array_type = ArrayType() >>> array_type.interpolatable NotImplementedError
Note
This method is used to check if the array is interpolatable.