class ComplexArray(BaseArray): _ui_name = "Array of complex numbers" dtype = basic.DType(default=numpy.complex128) stored_metadata = [ key for key in MappedType.DEFAULT_STORED_ARRAY_METADATA if key != MappedType.METADATA_ARRAY_VAR ]
class AnnotationArray(Array): """ Holds a flatten form for the annotations for a full connectivity. Each region in the connectivity can have None, or a tree of AnnotationTerms To be stored in a compound DS in H5. """ dtype = types_basic.DType(default=ANNOTATION_DTYPE) stored_metadata = [MappedType.METADATA_ARRAY_SHAPE]
class BoolArray(BaseArray): _ui_name = "Boolean array" dtype = basic.DType(default=numpy.bool) stored_metadata = [MappedType.METADATA_ARRAY_SHAPE] def _find_summary_info(self): summary = { "Array type": self.__class__.__name__, "Shape": self.shape, 'Number True': self.value.sum(), 'Percent True': self.value.mean() * 100, } return summary
class BoolArrayData(Array): """ A numpy.ndarray of dtype numpy.bool """ _ui_name = "Boolean array" dtype = basic.DType(default=numpy.bool)
class ComplexArrayData(Array): """ A numpy.ndarray of dtype numpy.complex128 """ _ui_name = "Array of complex numbers" dtype = basic.DType(default=numpy.complex128)
class IntegerArrayData(Array): """ A numpy.ndarray of dtype numpy.int32 """ _ui_name = "Array of integers" dtype = basic.DType(default=numpy.int32)
class FloatArrayData(Array): """ A numpy.ndarray of dtype numpy.float64 """ _ui_name = "Floating-point array" dtype = basic.DType(default=numpy.float64)
class IntegerArray(BaseArray): _ui_name = "Array of integers" dtype = basic.DType(default=numpy.int_)
class FloatArray(BaseArray): _ui_name = "Floating-point array" dtype = basic.DType(default=numpy.float64)