Example #1
0
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]
Example #3
0
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
Example #4
0
class BoolArrayData(Array):
    """ A numpy.ndarray of dtype numpy.bool """
    _ui_name = "Boolean array"
    dtype = basic.DType(default=numpy.bool)
Example #5
0
class ComplexArrayData(Array):
    """ A numpy.ndarray of dtype numpy.complex128 """
    _ui_name = "Array of complex numbers"
    dtype = basic.DType(default=numpy.complex128)
Example #6
0
class IntegerArrayData(Array):
    """ A numpy.ndarray of dtype numpy.int32 """
    _ui_name = "Array of integers"
    dtype = basic.DType(default=numpy.int32)
Example #7
0
class FloatArrayData(Array):
    """ A numpy.ndarray of dtype numpy.float64 """
    _ui_name = "Floating-point array"
    dtype = basic.DType(default=numpy.float64)
Example #8
0
class IntegerArray(BaseArray):
    _ui_name = "Array of integers"
    dtype = basic.DType(default=numpy.int_)
Example #9
0
class FloatArray(BaseArray):
    _ui_name = "Floating-point array"
    dtype = basic.DType(default=numpy.float64)