ZarrProcessSynchronizer#

class caput.memdata.fileformats.ZarrProcessSynchronizer(name, comm=None)[source]#

A context manager for Zarr’s ProcessSynchronizer that removes the lock files when done.

If an MPI communicator is supplied, only rank 0 will attempt to remove files.

Parameters:
namestr

Name of the lockfile directory.

commMPI.Comm | None, optional

MPI communicator (optional).