empty_hdf5

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

mcutils.utils.cifti.empty_hdf5(group: h5py.Group, axes: Sequence[nibabel.cifti2.cifti2_axes.Axis], dtype=<class 'float'>, compression='gzip')[source]

Creates a new HDF5 group with an empty dataset

Parameters
  • group – HDF5 group

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

  • dtype – data type

  • compression – which compression to use on each chunk

Returns

new array to be filled