RudyMorel / scattering_spectra

Scattering Spectra used for the analysis and generation of time-series
MIT License
25 stars 8 forks source link

print status lines only with verbose logging #13

Closed lsarra closed 1 month ago

lsarra commented 6 months ago

Instead of always printing info statement when generating samples, they are only printed according to the logging level.

If the LOGLEVEL environment variable is INFO or below (e.g. DEBUG), logs are printed, otherwise not(default is WARNING). (set environment variable with export LOGLEVEL=INFO to enable print statements.

Not sure you need this, but this is what we changed to use it in our case.

RudyMorel commented 6 months ago

Thank you for suggesting to adapt the level of logging when it comes to generating data. The solution you propose now does not print anything by default, which is not ideal for new users of the code. How about a "verbose" argument in the .load() method instead?