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: 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