Skip to content

Commit 90ad1b3

Browse files
authored
Merge pull request #345 from OpenPIV/copilot/fix-344
Update code to support newest NumPy versions (2.x)
2 parents a252fb7 + b8182b1 commit 90ad1b3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

openpiv/pyprocess.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -873,7 +873,7 @@ def fft_correlate_windows(window_a, window_b,
873873
# works for rectangular windows as well
874874
x = [[1 , 0 , 0 , 0] , [0 , -1 , 0 , 0] , [0 , 0 , 3 , 0] ,
875875
[0 , 0 , 0 , 1], [0 , 0 , 0 , 1]]
876-
x = np.array(x,dtype=np.float)
876+
x = np.array(x,dtype=np.float64)
877877
y = [[4 , 5] , [3 , 4]]
878878
y = np.array(y)
879879
print ("conv:" , signal.convolve2d(x , y , 'full'))

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ classifiers = [
3232

3333
[tool.poetry.dependencies]
3434
python = ">=3.10"
35-
numpy = "^1.21.6"
35+
numpy = ">=1.21.6"
3636
imageio = "^2.22.4"
3737
matplotlib = "^3"
3838
scikit-image=">=0.23"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
'setuptools',
2020
],
2121
install_requires=[
22-
'numpy',
22+
'numpy>=1.21.6',
2323
'imageio>=2.22.4',
2424
'matplotlib>=3',
2525
'scikit-image',

0 commit comments

Comments
 (0)