usnistgov / pyMCR

pyMCR: Multivariate Curve Resolution for Python
https://pages.nist.gov/pyMCR
Other
80 stars 27 forks source link

Logging implementation #23

Closed jat255 closed 5 years ago

jat255 commented 5 years ago

Resolves #22

Hi Charlie, I've implemented a swap from print statements to logging, as it provides a bit more flexibility in using the library externally. I also made some PEP8 changes at the request of my IDE. The tests all still pass and the coverage has remained the same.

If you're alright with this change, it would be great if you could trigger a minor release to pypi, since we're hoping to rely on this change for some additions into HyperSpy.

jat255 commented 5 years ago

FYI, @AndrewHerzing and I are running a HyperSpy tutorial next week if you're interested

CCampJr commented 5 years ago

@jat255 @AndrewHerzing

For the average Python user, they definitely want easy access to verbose output. I guess I have 2 options:

Thus far I've merged your PR into my personal 0.3.X fork and am working on the following:

I'm not in love with average users needing to mess with the logger to see the basic outputs, but I want to make sure PyMCR can quickly get compatibalized with your work.

Thoughts?