sissaschool/sportran

Cesptral log format

lorisercole opened this issue · 0 comments

I noticed that cepstral_log prints with float string format, which can be annoying when dealing with very big/small numbers:

' kappa* = {:18f} +/- {:10f} {}\n'.format(self.kappa, self.kappa_std, self._KAPPA_SI_UNITS) +\

In the examples of #62, this is the output, which is kind of hard to read

-----------------------------------------------------
  CEPSTRAL ANALYSIS
-----------------------------------------------------
  cutoffK = (P*-1) = 10  (auto, AIC_Kmin = 10, corr_factor =  1.0)
  L_0*   =          18.297017 +/-   0.057597
  S_0*   =   127801909.034038 +/- 7361041.782368
-----------------------------------------------------
  kappa* =           0.000229 +/-   0.000013  Pa*s
-----------------------------------------------------

I propose to use scientific notation whenever numbers are too big/small.