Skip to content

Commit 756be82

Browse files
committed
Remove warnings
1 parent bfc9b47 commit 756be82

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[build-system]
2-
requires = ["setuptools>=62.0", "setuptools-git-versioning<2"]
2+
requires = ["setuptools>=62.0", "setuptools-git-versioning>=2.0"]
33
build-backend = "setuptools.build_meta"
44

55
[project]

requirements/run.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
numpy < 2.0.0 # Need to fix deprecations before 2.0.0 compat
1+
numpy
22
pycifrw

src/diffpy/structure/atom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -536,7 +536,7 @@ def __setitem__(self, idx, value):
536536
self._atom.xyz[:] = self._atom.lattice.fractional(self)
537537
return
538538

539-
def __array_wrap__(self, out_arr, context=None):
539+
def __array_wrap__(self, out_arr, context=None, return_scalar=False):
540540
"""Ensure math operations on this type yield standard numpy array."""
541541
return out_arr.view(numpy.ndarray)
542542

0 commit comments

Comments
 (0)