Skip to content

Commit 1123f14

Browse files
Merge pull request #601 from evgmik/fix-ndarray-save
fixing NDArray save method to use its own compression parameters
2 parents eee6997 + 68998af commit 1123f14

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/blosc2/ndarray.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4703,7 +4703,7 @@ def save(self, urlpath: str, contiguous=True, **kwargs: Any) -> None:
47034703
# Add the contiguous parameter
47044704
kwargs["contiguous"] = contiguous
47054705

4706-
super().copy(self.dtype, **kwargs)
4706+
super().copy(self.dtype, cparams=asdict(self.cparams), **kwargs)
47074707

47084708
def resize(self, newshape: tuple | list) -> None:
47094709
"""Change the shape of the array by growing or shrinking one or more dimensions.

0 commit comments

Comments
 (0)