From 381b3a4626807f11a0a1233b17516167039c0018 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 17 Jun 2024 04:50:41 +0000 Subject: [PATCH 1/2] Bump numpy from 1.26.4 to 2.0.0 Bumps [numpy](https://github.com/numpy/numpy) from 1.26.4 to 2.0.0. - [Release notes](https://github.com/numpy/numpy/releases) - [Changelog](https://github.com/numpy/numpy/blob/main/doc/RELEASE_WALKTHROUGH.rst) - [Commits](https://github.com/numpy/numpy/compare/v1.26.4...v2.0.0) --- updated-dependencies: - dependency-name: numpy dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index c69ce99..eaa2baa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,7 +8,7 @@ h5py==3.11.0 # via -r requirements.in iniconfig==1.1.1 # via pytest -numpy==1.26.4 +numpy==2.0.0 # via # -r requirements.in # h5py From 81e147c924335c363718d9f8d0374c56d289835a Mon Sep 17 00:00:00 2001 From: Eric Berquist Date: Sun, 23 Jun 2024 16:55:58 -0400 Subject: [PATCH 2/2] NumPy: unified setting of scalars and ndarrays --- exdir/core/dataset.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/exdir/core/dataset.py b/exdir/core/dataset.py index 95bf614..7f5e6ca 100644 --- a/exdir/core/dataset.py +++ b/exdir/core/dataset.py @@ -132,12 +132,7 @@ def _reset_data(self, value, attrs, meta): shape=value.shape ) - if len(value.shape) == 0: - # scalars need to be set with itemset - self._data_memmap.itemset(value) - else: - # replace the contents with the value - self._data_memmap[:] = value + self._data_memmap[...] = value # update attributes and plugin metadata if attrs: