@classmethod
def fromDataArray(cls, data: DataArray) -> 'COSEMArrayAttrs':
    name = data.name
    if (name is not None):
        return cls(str(name), SpatialTransform.fromDataArray(data))
    else:
        raise ValueError('DataArray argument must have a valid name')
@classmethod
def fromDataArray(cls, data: DataArray) -> 'COSEMArrayAttrs':
    name = data.name
    if (name is not None):
        return cls(str(name), SpatialTransform.fromDataArray(data))
    else:
        raise ValueError('DataArray argument must have a valid name')