Zarr Utils (empanada.zarr_utils)#

empanada.zarr_utils.zarr_fill_instances(array, instances, processes=4)[source]#

Fills a zarr array in-place with instances.

Parameters
  • array – zarr.Array of size (d, h, w)

  • instances – Dictionary. Keys are instance_ids (integers) and values are another dictionary containing the run length encoding (keys: ‘starts’, ‘runs’).

  • processes – Integer, the number of processes to run.