Package: pymca / 5.8.0+dfsg-2

numpy-1.24.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: Fully specify dtype.
From: V. Armando Solé <sole@esrf.fr>
Origin: https://github.com/vasole/pymca/commit/ff99d0df9611a998a8e74d77b7e4e3d62f4d06bf
Bug: https://github.com/vasole/pymca/pull/939
Bug-Debian: https://bugs.debian.org/1027240

--- a/PyMca5/PyMcaCore/StackROIBatch.py
+++ b/PyMca5/PyMcaCore/StackROIBatch.py
@@ -2,10 +2,10 @@
 #
 # The PyMca X-Ray Fluorescence Toolkit
 #
-# Copyright (c) 2004-2020 European Synchrotron Radiation Facility
+# Copyright (c) 2004-2022 European Synchrotron Radiation Facility
 #
 # This file is part of the PyMca X-ray Fluorescence Toolkit developed at
-# the ESRF by the Software group.
+# the ESRF.
 #
 # Permission is hereby granted, free of charge, to any person obtaining a copy
 # of this software and associated documentation files (the "Software"), to deal
@@ -26,7 +26,7 @@
 # THE SOFTWARE.
 #
 #############################################################################*/
-__author__ = "V.A. Sole - ESRF Data Analysis"
+__author__ = "V.A. Sole - ESRF"
 __contact__ = "sole@esrf.fr"
 __license__ = "MIT"
 __copyright__ = "European Synchrotron Radiation Facility, Grenoble, France"
@@ -149,7 +149,7 @@ class StackROIBatch(object):
                 names[idxmin(j)] = "ROI " + roi + (" %s at Min." % roiType)
 
         # Allocate memory for result
-        roidtype = numpy.float
+        roidtype = numpy.float64
         results = outbuffer.allocateMemory('roisum',
                                            shape=roiShape,
                                            dtype=roidtype,