def toDataArray(self):
    if (Path(self.path).suffix == '.mrc'):
        array = mrc_to_dask(self.path, chunks=(1, (- 1), (- 1)))
    else:
        r = read(self.path)
        array = da.from_array(r, chunks=r.chunks)
    coords = [DataArray((self.transform.translate[idx] + (np.arange(array.shape[idx]) * self.transform.scale[idx])), dims=ax, attrs={'units': self.transform.units[idx]}) for (idx, ax) in enumerate(self.transform.axes)]
    return DataArray(array, coords=coords, name=self.name)
def toDataArray(self):
    if (Path(self.path).suffix == '.mrc'):
        array = mrc_to_dask(self.path, chunks=(1, (- 1), (- 1)))
    else:
        r = read(self.path)
        array = da.from_array(r, chunks=r.chunks)
    coords = [DataArray((self.transform.translate[idx] + (np.arange(array.shape[idx]) * self.transform.scale[idx])), dims=ax, attrs={'units': self.transform.units[idx]}) for (idx, ax) in enumerate(self.transform.axes)]
    return DataArray(array, coords=coords, name=self.name)