Open jo-basevi opened 5 months ago
Wondering whether it'll be worth using
logging.warning
instead ofwarnings.warn
for metadata warnings as reading more python documentation (e.g. https://docs.python.org/3/howto/logging.html),warnings.warn
is for if the warning can be avoided in the clients application, whilelogging.warning
is when the situation should be noted. This makes more sense when warning the user that a new experiment uuid is being generated.
Sounds like good idea.
The metadata related warnings look a bit broken with unclosed parentheses. e.g.
So it has the filename, line number, name of the warning and the line of the source code where warning get raised. The line of source code e.g.
warnings.warn(..
, can probably be left out of the log messages.Wondering whether it'll be worth using
logging.warning
instead ofwarnings.warn
for metadata warnings as reading more python documentation (e.g. https://docs.python.org/3/howto/logging.html),warnings.warn
is for if the warning can be avoided in the clients application, whilelogging.warning
is when the situation should be noted. This makes more sense when warning the user that a new experiment uuid is being generated.