-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warnings have been turned off #254
Comments
Agreed about the multiple filename warning, but maybe we should be showing "warn" level warnings by default anyway? It's curious that they'd be hidden! |
Agree definitely should be emitting warnings. Weirdly in #252 I am getting warnings. Hrm. Might have jumped the gun on this. Will check more thoroughly tomorrow. |
They're being captured by Simple example:
With the latest version of the cookbook I get this output (it loads the files because I've reset the warnings filter, otherwise it would thrown an exception which does make it to the console)
If I comment out
Consequently I think this should be removed from |
Created a custom warning for query errors and reset filter for it to throw exception in #257 |
Capturing of warnings is turned on here:
cosima-cookbook/cosima_cookbook/database.py
Line 45 in 19808e0
It occurred in this commit c196861
It means users no longer get warnings that were designed to tell users there was potentially a problem with their query:
cosima-cookbook/cosima_cookbook/querying.py
Lines 307 to 322 in 19808e0
Arguably the multiple filenames warning is no longer fit for purpose. Since the diagnostics have been split out into individual files with dates in the filename this warning is misleading and unhelpful.
However there is currently an issue with queries returning incorrect data (#252) and warning the user about this might be one potential approach.
The text was updated successfully, but these errors were encountered: