[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1035680: unblock: gr-air-modes/0.0.20210211-3



Package: release.debian.org 
Severity: normal 
User: release.debian.org@packages.debian.org
Usertags: unblock
X-Debbugs-Cc: gr-air-modes@packages.debian.org
Control: affects -1 + src:gnuradio

Please unblock package gr-air-modes

[ Reason ]
Version 0.0.20210211-3 fixes bug #1032195
gr-air-modes: modes_rx fails with AttributeError: module 'numpy' has no
attribute 'float'

[ Impact ]
Allows smooth upgrade from bullseye to bookworm.

[ Tests ]
Version in unstable runs correctly on bookworm system.

[ Risks ]
very low: added patch only changes the dtype to follow
changes in Python NumPy between bullseye and bookworm.

[ Checklist ]
[X] all changes are documented in the d/changelog 
[X] I reviewed all changes and I approve them 
[X] attach debdiff against the package in testing

[ Other info ]
Perhaps bug #1032195 severity should have been set to serious.
numpy.float was deprecated in NumPy 1.20, removed in NumPy 1.24.
Just use the Python type float.

unblock gr-air-modes/0.0.20210211-3


diff -Nru gr-air-modes-0.0.20210211/debian/changelog gr-air-modes-0.0.20210211/debian/changelog
--- gr-air-modes-0.0.20210211/debian/changelog	2021-12-29 23:04:48.000000000 -0500
+++ gr-air-modes-0.0.20210211/debian/changelog	2023-03-02 06:35:47.000000000 -0500
@@ -1,3 +1,10 @@
+gr-air-modes (0.0.20210211-3) unstable; urgency=medium
+
+  * Use Python float rather than deprecated and removed numpy.float
+  (Closes:1032195)
+
+ -- A. Maitland Bottoms <bottoms@debian.org>  Thu, 02 Mar 2023 06:35:47 -0500
+
 gr-air-modes (0.0.20210211-2) unstable; urgency=medium
 
   * source upload to allow transition to testing
diff -Nru gr-air-modes-0.0.20210211/debian/patches/float-not-numpy-float gr-air-modes-0.0.20210211/debian/patches/float-not-numpy-float
--- gr-air-modes-0.0.20210211/debian/patches/float-not-numpy-float	1969-12-31 19:00:00.000000000 -0500
+++ gr-air-modes-0.0.20210211/debian/patches/float-not-numpy-float	2023-03-02 06:35:47.000000000 -0500
@@ -0,0 +1,27 @@
+From 39a0c218f8ea5355d394d47094aec6f9e05e76d4 Mon Sep 17 00:00:00 2001
+From: "A. Maitland Bottoms" <bottoms@debian.org>
+Date: Thu, 2 Mar 2023 06:30:51 -0500
+Subject: [PATCH] float not numpy float
+
+numpy.float was deprecated in NumPy 1.20, removed in NumPy 1.24.
+Just use the Python type float.
+---
+ python/mlat.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/python/mlat.py b/python/mlat.py
+index 1583b1f..597e61f 100755
+--- a/python/mlat.py
++++ b/python/mlat.py
+@@ -37,7 +37,7 @@ wgs84_geoid = numpy.array([[13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,13,1
+                [-61,-60,-61,-55,-49,-44,-38,-31,-25,-16,-6,1,4,5,4,2,6,12,16,16,17,21,20,26,26,22,16,10,-1,-16,-29,-36,-46,-55,-54,-59],            #70S
+                [-53,-54,-55,-52,-48,-42,-38,-38,-29,-26,-26,-24,-23,-21,-19,-16,-12,-8,-4,-1,1,4,4,6,5,4,2,-6,-15,-24,-33,-40,-48,-50,-53,-52],     #80S
+                [-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30,-30]], #90S
+-               dtype=numpy.float)
++               dtype=float)
+                
+ #ok this calculates the geoid offset from the reference ellipsoid
+ #combined with LLH->ECEF this gets you XYZ for a ground-referenced point
+-- 
+2.39.2
+
diff -Nru gr-air-modes-0.0.20210211/debian/patches/series gr-air-modes-0.0.20210211/debian/patches/series
--- gr-air-modes-0.0.20210211/debian/patches/series	2021-12-21 21:19:45.000000000 -0500
+++ gr-air-modes-0.0.20210211/debian/patches/series	2023-03-02 06:35:47.000000000 -0500
@@ -1 +1,2 @@
 debian-soname
+float-not-numpy-float

Reply to: