Conversation
…e runners for the matrix
for more information, see https://pre-commit.ci
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #77 +/- ##
==========================================
- Coverage 88.16% 86.96% -1.20%
==========================================
Files 7 7
Lines 338 353 +15
==========================================
+ Hits 298 307 +9
- Misses 40 46 +6 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
src/openfe_analysis/reader.py
Outdated
| # The MDAnalysis trajectory "dt" is the iteration dt | ||
| # multiplied by the number of iterations between frames. | ||
| self._dt = _determine_iteration_dt(self._dataset) * np.diff(self._frames)[0] | ||
| self._frame_index = -1 |
There was a problem hiding this comment.
I wouldn't do this, let _read_frame set the frame_index to 0. Otherwise you're setting the variable to a value only for it to be reset two instructions later (it's a bit of a code smell).
src/openfe_analysis/reader.py
Outdated
| Path to the .nc file or an open Dataset. | ||
| index : int | ||
| Index of the state or replica to extract. May be negative. | ||
| view : {"state", "replica"}, default "state" |
There was a problem hiding this comment.
view is a bit unclear, I would maybe call it something like index_style or index_method? That way it's clear you're talking about how it's being indexed.
There was a problem hiding this comment.
Changed it to index_method!
src/openfe_analysis/reader.py
Outdated
| else: | ||
| size = self._dataset.dimensions["replica"].size | ||
|
|
||
| self._index = index % size |
There was a problem hiding this comment.
I would call this multistate_index or something like that, otherwise it gets very confusing with frame_index, etc...
No description provided.