-
Notifications
You must be signed in to change notification settings - Fork 51
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
amber TI parser (#10) #36
Conversation
- remove the main test function - change to amber parser to be compatible with python 3 - clean up a print line - change to .util
- test error handling for corrupted amber files alchemistry/alchemtest#11 - change the EOF detection/skip_after function for ziped file, - fix some other minor issues
I will look at this later in the afternoon. Hopefully the tests will still pass. |
@shuail please review when you have time. |
Codecov Report
@@ Coverage Diff @@
## master #36 +/- ##
==========================================
+ Coverage 95.12% 97.59% +2.47%
==========================================
Files 8 9 +1
Lines 205 374 +169
Branches 28 59 +31
==========================================
+ Hits 195 365 +170
+ Misses 5 4 -1
Partials 5 5
Continue to review full report at Codecov.
|
@orbeckst thanks a lot! I have to run into a flight, will review this later today. |
Just spectating here. Nice job everyone -- great to see the process working. :) |
I am trying out (Of course, the tests themselves still have to make sense but once you read the source and see that # FIXME: assumes fields are only integers or floats
if '*' in value: # Fortran format overflow
result.append(float('Inf') ) is not covered (and not excluded from coverage) then you get an idea where potential pain points are.) |
- use pytest paramterize for more fine grained control: each file is now run as as separate test, making it easier to spot and isolate specific problems - added test that amber.extract_dHdl returns None for invalid files (NOTE: should this become an exception?) - use #pragma: no cover to exclude lines from coverage (see https://www.mxsasha.eu/blog/2014/09/11/why-and-how-test-coverage-100/ for a good justification: be explicit about what we decide to ignore) This allows us to get close to 100% coverage without hiding where we decide to ignore coverage. See http://coverage.readthedocs.io/en/latest/excluding.html for how to use `#pragma: no cover`.
c899f5c
to
234edc0
Compare
I cleaned up the history and force-pushed, sorry for any inconvenience. When you EDIT: Just to be clear: |
@dotsdl feel free to review but please don't merge until @shuail got a chance to review. I want to make sure that his code goes in properly. @shuail if you and @dotsdl both approve you can merge the PR as is. (Do not rebase or squash because (1) this commit history has meaningful smaller commits and (2) rebasing is going to mess up the author attributions on any commit that has already gone through a rebase.) Thanks! Excellent work! |
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.
All looks good to me! Thanks @orbeckst for cleaning this up and merging all the commits here, I like this version better.
Feel free to merge ("Merge pull request"). You can then delete this branch. |
This PR supercedes PR #32: rebased and cleaned up history.
NOTE: This PR must be merged (not rebased, otherwise author information is lost)