-
Notifications
You must be signed in to change notification settings - Fork 4
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
Use get
to avoid KeyError on missing cmiles attribute
#300
Merged
Merged
Changes from 1 commit
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
f64d35b
use `get` to avoid KeyError on missing cmiles attribute
ntBre 2ab5d7e
add failing test for #299
ntBre bbb9a06
warn with MissingCMILESWarning instead of printing
ntBre abd6d7c
check that a warning is emitted
ntBre 0934011
run pre-commit hooks
ntBre 1dbd9a0
switch to logging from warnings
ntBre e70ec87
move individual warnings to info level to hide by default
ntBre 4b06d4c
call basicConfig first to fully initialize logger
ntBre 4677298
track total number of missing CMILES and warn at the end
ntBre eedf0d6
extend the warning message to mention loading from an opt dataset
ntBre 666c343
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f93d7fe
update release notes
ntBre a4a7b03
fix extra colon
ntBre 89b0564
fix minor typos
ntBre File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(blocking) Could you change this to be
warnings.warn
with a new warning type likeMissingCMILESWarning
?