Skip to content

Commit

Permalink
Merge pull request #188 from berquist/numpy-2
Browse files Browse the repository at this point in the history
Bump numpy from 1.26.4 to 2.0.0
  • Loading branch information
dragly authored Sep 16, 2024
2 parents d14faab + 81e147c commit 15857e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 1 addition & 6 deletions exdir/core/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 15857e3

Please sign in to comment.