@@ -371,18 +371,18 @@ def intensity_upd_local(self):
371
371
elif self .axis .get () == 2 :
372
372
plane = self .cube [:, :, self .plane_num .get ()]
373
373
nan_ratio = np .count_nonzero (np .isnan (plane )) / plane .size
374
- self .localmax ["text" ] = "{}" . format ( np .format_float_scientific (np .nanmax (plane ), 1 ))
375
- self .localmin ["text" ] = "{}" . format ( np .format_float_scientific (np .nanmin (plane ), 1 ))
376
- self .localsum ["text" ] = "{}" . format ( np .format_float_scientific (np .nansum (plane ), 1 ))
377
- self .localnanratio ["text" ] = "{}" . format ( round (nan_ratio , 2 ))
374
+ self .localmax ["text" ] = f" { np .format_float_scientific (np .nanmax (plane ), 1 )} "
375
+ self .localmin ["text" ] = f" { np .format_float_scientific (np .nanmin (plane ), 1 )} "
376
+ self .localsum ["text" ] = f" { np .format_float_scientific (np .nansum (plane ), 1 )} "
377
+ self .localnanratio ["text" ] = f" { round (nan_ratio , 2 )} "
378
378
379
379
def intensity_upd_global (self ):
380
- """show global intensity minimum, maximum and sum of 3D array"""
380
+ """Load global intensity minimum, maximum and sum of 3D array"""
381
381
self .intensity_upd_local ()
382
382
nan_ratio = np .count_nonzero (np .isnan (self .cube )) / self .cube .size
383
- self .globalmax ["text" ] = "{}" . format ( np .format_float_scientific (np .nanmax (self .cube ), 1 ))
384
- self .globalmin ["text" ] = "{}" . format ( np .format_float_scientific (np .nanmin (self .cube ), 1 ))
385
- self .globalsum ["text" ] = "{}" . format ( np .format_float_scientific (np .nansum (self .cube ), 1 ))
383
+ self .globalmax ["text" ] = f" { np .format_float_scientific (np .nanmax (self .cube ), 1 )} "
384
+ self .globalmin ["text" ] = f" { np .format_float_scientific (np .nanmin (self .cube ), 1 )} "
385
+ self .globalsum ["text" ] = f" { np .format_float_scientific (np .nansum (self .cube ), 1 )} "
386
386
self .globalnanratio ["text" ] = "{}" .format (round (nan_ratio , 2 ))
387
387
388
388
def fft (self ):
0 commit comments