Skip to content

Commit

Permalink
Remove numpy < 2.0 pinning (#214)
Browse files Browse the repository at this point in the history
* Remove numpy pinning

* Add copy none

* Add news
  • Loading branch information
bobleesj authored Sep 30, 2024
1 parent 3975fd5 commit 1f0b9a3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
23 changes: 23 additions & 0 deletions news/numpy.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
**Added:**

* numpy >= 2.0 support

**Changed:**

* <news item>

**Deprecated:**

* <news item>

**Removed:**

* <news item>

**Fixed:**

* <news item>

**Security:**

* <news item>
2 changes: 1 addition & 1 deletion requirements/run.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
numpy < 2.0.0
numpy
wxpython
diffpy.pdffit2
diffpy.structure
Expand Down
6 changes: 3 additions & 3 deletions src/diffpy/pdfgui/control/fitdataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -785,10 +785,10 @@ def grid_interpolation(x0, y0, x1, youtleft=0.0, youtright=0.0):
Return numpy.array of interpolated y1 values.
"""
x0 = numpy.array(x0, copy=False, dtype=float)
y0 = numpy.array(y0, copy=False, dtype=float)
x0 = numpy.asarray(x0, copy=None, dtype=float)
y0 = numpy.asarray(y0, copy=None, dtype=float)
n0 = len(x0)
x1 = numpy.array(x1, copy=False, dtype=float)
x1 = numpy.asarray(x1, copy=None, dtype=float)
n1 = len(x1)
y1 = youtright * numpy.ones(n1, dtype=float)
if n0:
Expand Down

0 comments on commit 1f0b9a3

Please sign in to comment.