Andreas Tille pushed to branch master at Debian Med / pyscanfcs


Commits:
c8d73640 by Andreas Tille at 2026-05-16T21:49:35+02:00
Standards-Version: 4.7.4 (Removed Priority field)

- - - - -
36720053 by Andreas Tille at 2026-05-16T22:21:03+02:00
Fix build with NumPy 2.4 Closes: #1131069

- - - - -
56b78996 by Andreas Tille at 2026-05-16T22:23:18+02:00
Upload to unstable

- - - - -


4 changed files:

- debian/changelog
- debian/control
- + debian/patches/numpy-2.4.patch
- debian/patches/series


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,12 @@
+pyscanfcs (0.3.6+ds-7) unstable; urgency=medium
+
+  * Team upload.
+  * Standards-Version: 4.7.4 (Removed Priority field)
+  * Fix build with NumPy 2.4
+    Closes: #1131069
+
+ -- Andreas Tille <[email protected]>  Sat, 16 May 2026 22:21:13 +0200
+
 pyscanfcs (0.3.6+ds-6) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/control
=====================================
@@ -2,7 +2,6 @@ Source: pyscanfcs
 Maintainer: Debian Med Packaging Team 
<[email protected]>
 Uploaders: Alexandre Mestiashvili <[email protected]>
 Section: science
-Priority: optional
 Build-Depends: cython3,
                debhelper-compat (= 13),
                dh-python,
@@ -27,7 +26,7 @@ Build-Depends: cython3,
                texlive-latex-extra,
                texlive-latex-recommended,
                texlive-science
-Standards-Version: 4.7.2
+Standards-Version: 4.7.4
 Vcs-Browser: https://salsa.debian.org/med-team/pyscanfcs
 Vcs-Git: https://salsa.debian.org/med-team/pyscanfcs.git
 Homepage: https://fcs-analysis.github.io/PyScanFCS/


=====================================
debian/patches/numpy-2.4.patch
=====================================
@@ -0,0 +1,19 @@
+Author: Andreas Tille <[email protected]>
+Last-Update: 2026-05-15
+Bug-Debian: https://bugs.debian.org/1131069
+Description: np.fromfile(..., count=1) returns a 1-element array
+
+--- a/pyscanfcs/openfile.py
++++ b/pyscanfcs/openfile.py
+@@ -62,9 +62,9 @@ def openDAT(path, callback=None, cb_kwar
+     filed = open(path, 'rb')
+     # 1st byte: get file format
+     # should be 16 - for 16 bit
+-    fformat = int(np.fromfile(filed, dtype="<u1", count=1))
++    fformat = int(np.fromfile(filed, dtype="<u1", count=1)[0])
+     # 2nd byte: read system clock
+-    system_clock = int(np.fromfile(filed, dtype="<u1", count=1))
++    system_clock = int(np.fromfile(filed, dtype="<u1", count=1)[0])
+     if fformat == 8:
+         # No 8 bit format supported
+         raise ValueError("8 bit format not supported!")


=====================================
debian/patches/series
=====================================
@@ -1,3 +1,4 @@
 noDownloadOfDoc.patch
 do-not-use-utf8x.patch
 numpy-2.0.patch
+numpy-2.4.patch



View it on GitLab: 
https://salsa.debian.org/med-team/pyscanfcs/-/compare/6c5a110fc7372c0ef08a22c31bb984a0ddd30179...56b7899657bc88ae60fd437330b3e78840b90526

-- 
View it on GitLab: 
https://salsa.debian.org/med-team/pyscanfcs/-/compare/6c5a110fc7372c0ef08a22c31bb984a0ddd30179...56b7899657bc88ae60fd437330b3e78840b90526
You're receiving this email because of your account on salsa.debian.org. Manage 
all notifications: https://salsa.debian.org/-/profile/notifications | Help: 
https://salsa.debian.org/help


_______________________________________________
debian-med-commit mailing list
[email protected]
https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit

Reply via email to