Skip to content

Commit

Permalink
Add patch with fix for numpy 2.0 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanvolz committed Jun 3, 2024
1 parent 97156f0 commit 7df4790
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,5 @@ index dbea5b05e..b06482327 100644
OUTPUT ${pyexefile}
DEPENDS ${pyfile}
--
2.42.0
2.45.1

Original file line number Diff line number Diff line change
Expand Up @@ -209,5 +209,5 @@ index 28b735773..c953aa8fa 100644
)

--
2.42.0
2.45.1

Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ index d46d6eb4a..5651a54a1 100644
- main(sys.argv)
+ main()
--
2.42.0
2.45.1

Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,5 @@ index 5a6fb7633..0c0cab0e9 100644
target_compile_options(${name}_python PRIVATE -Wno-unused-variable
)# disable warnings for docstring templates
--
2.42.0
2.45.1

Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ index f25f67cd4..5e599e697 100644
with open(os.path.join(self.manifest_dir, f), 'r', encoding='utf8') as manifest:
text = manifest.read()
--
2.42.0
2.45.1

Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ index d4a7ca991..46ddd9a3a 100644
if os.path.isdir(entry):
subdirs = 0
--
2.42.0
2.45.1

Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ index 8718a6f73..e87c6a20a 100644
message(STATUS "QWT Version: ${QWT_VERSION}")
if(NOT QWT_WRONG_VERSION)
--
2.42.0
2.45.1

Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Ryan Volz <ryan.volz@gmail.com>
Date: Mon, 3 Jun 2024 12:33:49 -0400
Subject: [PATCH] filter: python: Change float_ to float64 for numpy 2.0
compatibility

Signed-off-by: Ryan Volz <ryan.volz@gmail.com>
---
gr-filter/python/filter/gui/polezero_plot.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gr-filter/python/filter/gui/polezero_plot.py b/gr-filter/python/filter/gui/polezero_plot.py
index 9d6db915e..db9afe866 100644
--- a/gr-filter/python/filter/gui/polezero_plot.py
+++ b/gr-filter/python/filter/gui/polezero_plot.py
@@ -11,7 +11,7 @@ from PyQt5 import Qt, QtCore
from math import sin, cos, pi
import pyqtgraph as pg
from numpy import zeros
-from numpy import float_ as Float
+from numpy import float64 as Float
from numpy import vectorize
from numpy import delete

--
2.45.1

1 change: 1 addition & 0 deletions recipe/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ source:
- 0005-grc-qt-Don-t-error-when-missing-manifests-dir.patch
- 0006-grc-qt-Continue-instead-of-break-for-empty-example-p.patch
- 0007-cmake-remove-maximum-version-for-Qwt-was-6.3.patch
- 0008-filter-python-Change-float_-to-float64-for-numpy-2.0.patch


build:
Expand Down

0 comments on commit 7df4790

Please sign in to comment.