Skip to content

Commit

Permalink
added doc string for comm in load zarr and moved noqa to right line
Browse files Browse the repository at this point in the history
  • Loading branch information
Berkant03 committed Jan 27, 2025
1 parent 793aece commit 6eb55e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions heat/core/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1324,6 +1324,8 @@ def load_zarr(
Along which axis the loaded arrays should be concatenated.
device : str, optional
The device id on which to place the data, defaults to globally set default device.
comm : Communication, optional
The communication to use for the data distribution, default is 'heat.MPI_WORLD'
**kwargs : Any
extra Arguments to pass to zarr.open
"""
Expand All @@ -1350,8 +1352,8 @@ def load_zarr(
offset, local_shape, slices = comm.chunk(shape, split)

return factories.array(
arr[*slices], dtype=dtype, is_split=split, device=device, comm=comm
) # noqa: E999
arr[*slices], dtype=dtype, is_split=split, device=device, comm=comm # noqa: E999
)

def save_zarr(path: str, dndarray: DNDarray, overwrite: bool = False, **kwargs) -> None:
"""
Expand Down

0 comments on commit 6eb55e9

Please sign in to comment.