diff options
Diffstat (limited to 'silx/gui/fit')
-rw-r--r-- | silx/gui/fit/BackgroundWidget.py | 4 | ||||
-rw-r--r-- | silx/gui/fit/FitWidget.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/silx/gui/fit/BackgroundWidget.py b/silx/gui/fit/BackgroundWidget.py index 2171e87..76bc043 100644 --- a/silx/gui/fit/BackgroundWidget.py +++ b/silx/gui/fit/BackgroundWidget.py @@ -1,6 +1,6 @@ # coding: utf-8 #/*########################################################################## -# Copyright (C) 2004-2017 V.A. Sole, European Synchrotron Radiation Facility +# Copyright (C) 2004-2020 V.A. Sole, European Synchrotron Radiation Facility # # This file is part of the PyMca X-ray Fluorescence Toolkit developed at # the ESRF by the Software group. @@ -337,7 +337,7 @@ class BackgroundWidget(qt.QWidget): pars = self.getParameters() # smoothed data - y = numpy.ravel(numpy.array(self._y)).astype(numpy.float) + y = numpy.ravel(numpy.array(self._y)).astype(numpy.float64) if pars["SmoothingFlag"]: ysmooth = filters.savitsky_golay(y, pars['SmoothingWidth']) f = [0.25, 0.5, 0.25] diff --git a/silx/gui/fit/FitWidget.py b/silx/gui/fit/FitWidget.py index 7279cd9..08731f1 100644 --- a/silx/gui/fit/FitWidget.py +++ b/silx/gui/fit/FitWidget.py @@ -720,7 +720,7 @@ class FitWidget(qt.QWidget): if __name__ == "__main__": import numpy - x = numpy.arange(1500).astype(numpy.float) + x = numpy.arange(1500).astype(numpy.float64) constant_bg = 3.14 p = [1000, 100., 30.0, |