NSLS-II-CSX / csxtools

Useful python tools for CSX (23-ID)
http://nsls-ii-csx.github.io/csxtools
Other
4 stars 13 forks source link

Logging module no longer works #76

Open ambarb opened 4 years ago

ambarb commented 4 years ago

https://github.com/NSLS-II-CSX/csxtools/blob/master/examples/Correct_FastCCD_Images.ipynb

I cannot reproduce this notebook. Logging code is still in the functions of CSXtools (and the level is set to the same value ("info").

ambarb commented 1 month ago
import logging
logging.getLogger().setLevel(logging.INFO)

maybe it is a syntax difference that is no longer checked and just silences the fail

from logging import INFO, basicConfig, getLogger
basicConfig(level=INFO)
getLogger()

however, use argparse as a wrapper to logging looks like it will work more generically in the namespace.