Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cesptral log format #63

Open
lorisercole opened this issue Jul 7, 2022 · 0 comments
Open

Cesptral log format #63

lorisercole opened this issue Jul 7, 2022 · 0 comments

Comments

@lorisercole
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant