Skip to content

Commit a67e6ac

Browse files
committed
Add return_scalar none to array_wrap
1 parent 6596333 commit a67e6ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

0 commit comments

Comments
 (0)