diff --git a/setup.cfg b/setup.cfg index 5211331a456ad96db2f277fd7f0c0d376a397ed0..a12e0af830c0430362f7b2d744f3a2a24882b205 100644 --- a/setup.cfg +++ b/setup.cfg @@ -2,8 +2,10 @@ filterwarnings = error # Triggered by ScopeSIM: - ignore:In a future version top level function calls will be removed:DeprecationWarning:scopesim + ignore:In a future version top level function calls will be removed:DeprecationWarning ignore:Please use `zoom`:DeprecationWarning:scopesim + ignore:`np.bool8` is a deprecated alias for `np.bool_`:DeprecationWarning + ignore:Conversion of an array with ndim > 0 to a scalar is deprecated:DeprecationWarning # Dividing by 0: ignore:invalid value encountered in true_divide:RuntimeWarning ignore:invalid value encountered in divide:RuntimeWarning diff --git a/src/micado/main/ImstatExtra.py b/src/micado/main/ImstatExtra.py index 23e5002999060fdfd296dd4fa1aadeef64855973..78ac35d6f8b05ff8c61fd80b05927b13044bbc29 100644 --- a/src/micado/main/ImstatExtra.py +++ b/src/micado/main/ImstatExtra.py @@ -22,8 +22,8 @@ class ImstatExtra(MObject): # in particular in combination with storing to FITS files and # reading the number back. At least for certain combinations # of numpy and astropy, e.g. 1.21.1 and 4.3.post1. - self.min = fitsfloat(float(numpy.round_(numpy.min(images), 14))) - self.max = fitsfloat(float(numpy.round_(numpy.max(images), 14))) - self.mean = fitsfloat(float(numpy.round_(numpy.mean(images), 14))) - self.std = fitsfloat(float(numpy.round_(numpy.std(images), 14))) - self.median = fitsfloat(float(numpy.round_(numpy.median(images), 14))) + self.min = fitsfloat(float(numpy.round(numpy.min(images), 14))) + self.max = fitsfloat(float(numpy.round(numpy.max(images), 14))) + self.mean = fitsfloat(float(numpy.round(numpy.mean(images), 14))) + self.std = fitsfloat(float(numpy.round(numpy.std(images), 14))) + self.median = fitsfloat(float(numpy.round(numpy.median(images), 14)))