From bc93e18755153f8af9ed9c0a4eead053422fadcf Mon Sep 17 00:00:00 2001 From: Berkant Palazoglu Date: Mon, 27 Jan 2025 12:50:48 +0100 Subject: [PATCH] removed unpacking for pydocstyle --- heat/core/io.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/heat/core/io.py b/heat/core/io.py index 332a4c66c..041f7af00 100644 --- a/heat/core/io.py +++ b/heat/core/io.py @@ -1352,7 +1352,7 @@ 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 ) def save_zarr(path: str, dndarray: DNDarray, overwrite: bool = False, **kwargs) -> None: @@ -1445,7 +1445,7 @@ def save_zarr(path: str, dndarray: DNDarray, overwrite: bool = False, **kwargs) if dndarray.split is not None: _, _, slices = MPI_WORLD.chunk(dndarray.gshape, dndarray.split) - zarr_array[*slices] = ( # noqa: E999 + zarr_array[slices] = ( dndarray.larray.numpy() # Numpy array needed as zarr can only understand numpy dtypes and infers it. ) else: