Skip to content

fix inconsistent error handling for Grid.load()#165

Merged
orbeckst merged 4 commits intomasterfrom
cleanup
Apr 14, 2026
Merged

fix inconsistent error handling for Grid.load()#165
orbeckst merged 4 commits intomasterfrom
cleanup

Conversation

@orbeckst
Copy link
Copy Markdown
Member

  • gOpenMol parser now captures its TypeError and raises ValueError if the header cannot be read; this makes it consistent with the other parsers
  • removed XFAILs from tests that check failure behavior for incorrectly specified file_format for Grid/Grid.load()
  • update CHANGELOG
  • update docs for Grid.load()

- gOpenMol parser now captures its TypeError and raises ValueError if the
  header cannot be read; this makes it consistent with the other parsers
- removed XFAILs from tests that check failure behavior for incorrectly
  specified file_format for Grid/Grid.load()
- update CHANGELOG
- update docs for Grid.load()
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.90%. Comparing base (f45d52b) to head (eb1ac34).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #165      +/-   ##
==========================================
+ Coverage   88.20%   88.90%   +0.69%     
==========================================
  Files           5        5              
  Lines         814      820       +6     
  Branches      107      107              
==========================================
+ Hits          718      729      +11     
+ Misses         56       54       -2     
+ Partials       40       37       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@orbeckst orbeckst requested a review from BradyAJohnston April 10, 2026 02:24
Copy link
Copy Markdown
Member

@BradyAJohnston BradyAJohnston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comments, LGTM

Comment thread gridData/gOpenMol.py Outdated
Comment thread gridData/tests/test_grid.py
- add match testing for many Grid exceptions
- specifically catch TypeError for gOpenMol instead of all Exceptions
- fixed minor space typo in exception message
@orbeckst
Copy link
Copy Markdown
Member Author

Thanks for the comments @BradyAJohnston . I addressed them at least partially (see explanation in comments). Btw, don't hesitate to leave a "request changes", please.

Copy link
Copy Markdown
Member

@BradyAJohnston BradyAJohnston left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@orbeckst orbeckst merged commit accce2b into master Apr 14, 2026
10 checks passed
@orbeckst orbeckst deleted the cleanup branch April 14, 2026 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants