Move MDTrajTopology#1012
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1012 +/- ##
=======================================
Coverage 81.19% 81.20%
=======================================
Files 139 138 -1
Lines 15129 15134 +5
=======================================
+ Hits 12284 12289 +5
Misses 2845 2845
Continue to review full report at Codecov.
|
|
Note (as much to self as to others): This can be merged despite the CodeCov fails. The changes are moving code that was not fully covered. Therefore the patch code isn't covered. I suspect that the drop in project coverage (7 lines) may be due to making MDTraj a hard requirement. (It shouldn't be, see #1012 (comment) for suggested fix.) |
|
@dwhswenson, reverted the hard mdtraj dependency. Please have another look (even though codecov is still not happy about it). |
dwhswenson
left a comment
There was a problem hiding this comment.
Looks basically good. Only changes:
deprecated_inshould be next release (1.5.0)- Please import
MDTrajTopologyinto theopenpathsampling.enginesnamespace (via the__init__.py), just asTopologyis. On this point, I do care that the deprecation message tells people to load fromopenpathsampling.engines, since that will be the canonical API location. However, I don't care as much about the docstrings. Besides, I think the more correct way to write the docstrings would be:class:`.MDTrajTopology`.
Co-authored-by: David W.H. Swenson <dwhs@hyperblazer.net>
|
Looks good now, thanks! Merging. |
closes #1011
This PR moves
MDTrajTopologyfromopenpathsampling.engines.openmm.topologytoopenpathsampling.engines.topologyThis was a slightly bigger hassle than intended (because we want to warn on import).
I ended up mimicking
importing ABCs from collections instead of collections.abc is deprecatedThis also makesmdtraja hard requirement