diff options
author | Picca Frédéric-Emmanuel <picca@debian.org> | 2021-01-06 14:10:12 +0100 |
---|---|---|
committer | Picca Frédéric-Emmanuel <picca@debian.org> | 2021-01-06 14:10:12 +0100 |
commit | b3bea947efa55d2c0f198b6c6795b3177be27f45 (patch) | |
tree | 4116758aafe4483bf472c1d54b519e685737fd77 /silx/math/fit/bgtheories.py | |
parent | 5ad425ff4e62f5e003178813ebd073577679a00e (diff) |
New upstream version 0.14.0+dfsg
Diffstat (limited to 'silx/math/fit/bgtheories.py')
-rw-r--r-- | silx/math/fit/bgtheories.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/silx/math/fit/bgtheories.py b/silx/math/fit/bgtheories.py index ccb556e..631c43e 100644 --- a/silx/math/fit/bgtheories.py +++ b/silx/math/fit/bgtheories.py @@ -1,7 +1,7 @@ # coding: utf-8 #/*########################################################################## # -# Copyright (c) 2004-2019 European Synchrotron Radiation Facility +# Copyright (c) 2004-2020 European Synchrotron Radiation Facility # # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal @@ -281,7 +281,7 @@ def estimate_strip(x, y): """ estimated_par = [CONFIG["StripWidth"], CONFIG["StripIterations"]] - constraints = numpy.zeros((len(estimated_par), 3), numpy.float) + constraints = numpy.zeros((len(estimated_par), 3), numpy.float64) # code = 3: FIXED constraints[0][0] = 3 constraints[1][0] = 3 @@ -295,7 +295,7 @@ def estimate_snip(x, y): set constraints to FIXED. """ estimated_par = [CONFIG["SnipWidth"]] - constraints = numpy.zeros((len(estimated_par), 3), numpy.float) + constraints = numpy.zeros((len(estimated_par), 3), numpy.float64) # code = 3: FIXED constraints[0][0] = 3 return estimated_par, constraints @@ -321,7 +321,7 @@ def estimate_poly(x, y, deg=2): CONFIG["StripWidth"], CONFIG["StripIterations"]) pcoeffs = numpy.polyfit(x, y, deg) - cons = numpy.zeros((deg + 1, 3), numpy.float) + cons = numpy.zeros((deg + 1, 3), numpy.float64) return pcoeffs, cons |