empty_zarr

Import in python using from mcutils.utils.cifti import empty_zarr

mcutils.utils.cifti.empty_zarr(group: zarr.Group, axes: Sequence[nibabel.cifti2.cifti2_axes.Axis], dtype=<class 'float'>, compressor='default')[source]

Creates a new zarr group with an empty dataset

Parameters
  • group – zarr group

  • axes – sequence of axes (all have to be defined)

  • dtype – data type

  • compressor – which compressor to use on each chunk

Returns

new array to be filled