LupoA / lsdensities

Smeared spectral densities from lattice correlators
GNU General Public License v3.0
3 stars 0 forks source link

Use logging #32

Open edbennett opened 6 months ago

edbennett commented 6 months ago

Python's build-in logging library gives some important advantages over using prints everywhere.

e.g.

I'd suggest that most things that are currently prints should be logging.info or logging.warns.

(If you need the timestamp on it, you can use logging.setFormatter to achieve this automatically.)

edbennett commented 5 months ago

As part of this I'd suggest adding "T20" to the ruff linting options.