Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion ndsl/monitor/zarr_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import xarray as xr

import ndsl.constants as constants
from ndsl.comm import Comm
from ndsl.comm.partitioner import Partitioner, subtile_slice
from ndsl.logging import ndsl_log
from ndsl.monitor.convert import to_numpy
Expand Down Expand Up @@ -47,7 +48,7 @@ def __init__(
store: str | zarr.storage.MutableMapping,
partitioner: Partitioner,
mode: str = "w",
mpi_comm: DummyComm | None = None,
mpi_comm: Comm | DummyComm | None = None,
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think an alternative could be to try having mpi_comm: Comm | None = None. Then, maybe have DummyComm inherit from Comm.

) -> None:
"""Create a ZarrMonitor.

Expand Down