-
Notifications
You must be signed in to change notification settings - Fork 740
Pathlib object handling for Universe, SingleFrameReaderBase and Toplogy parsers (Issue #3937) #4535
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
base: develop
Are you sure you want to change the base?
Pathlib object handling for Universe, SingleFrameReaderBase and Toplogy parsers (Issue #3937) #4535
Conversation
…se + removal of duplicate import
adding the implementation of tests for str and pathlib handling
|
Hello @talagayev! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:
Comment last updated at 2024-12-17 20:40:44 UTC |
Linter Bot Results:Hi @talagayev! Thanks for making this PR. We linted your code and found the following: Some issues were found with the formatting of your code.
Please have a look at the Please note: The |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #4535 +/- ##
========================================
Coverage 92.72% 92.72%
========================================
Files 180 180
Lines 22458 22473 +15
Branches 3186 3192 +6
========================================
+ Hits 20824 20838 +14
Misses 1177 1177
- Partials 457 458 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
@hmacdope would you be able to look at this PR or assign to someone else, please? |
|
Apologies for the delay @orbeckst @talagayev, was away over easter. Reviewing now. |
hmacdope
left a comment
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.
@talagayev you have the right idea of what to test, and your test implementations are good!
However to achieve better coverage and to make your tests more powerful you can instead add your tests to BaseReaderTest and _SingleFrameReader that cover the base API functionality for all relevant trajectory types. This is in estsuite/MDAnalysisTests/coordinates/base.py. :)
Ah, I think i see :) i would than adjust it so that the tests are in Does it than make also sense to move the |
|
@hmacdope
in the case of |
Adjusted the tests to be in base.py
|
@hmacdope |
|
@talagayev sorry for the delay here. I will review ASAP. |
|
@hmacdope all good, no worries :) |
|
@hmacdope would it be worthwhile reviewing again? Can this PR be pushed across the finish line? |
add fix for topology cases
revert to check error
fix coord
fix top
add import os
fixes _auxs errors
check
check fix
black fix
…yev/mdanalysis into singleframereader_pathlib
changelog update
add path
Partially Fixes #3937. The issue mentioned the addition of support and testing for
pathlibobjects forSingleFrameReaderBase.Currently the
SingleFrameReaderBaseis able to handle bothpathlibandstras input forSingleFrameReaderBaseto display this, this PR is focusing on tests that display the handling ofpathlibandstras input forSingleFrameReaderBase.Changes made in this Pull Request:
pathlibobject andstrinput forSingleFrameReaderBaseintest_gro.pyandtest_lammps.pyCurrently the tests are as mentioned for
GROandLAMMPScases.SingleFrameReaderBasealso recognizesINPCRD,CRD,NAMDBINandDMSif given as a single input, so tests for these cases could also be added if required.PR Checklist
Developers certificate of origin
📚 Documentation preview 📚: https://mdanalysis--4535.org.readthedocs.build/en/4535/