Skip to content

Conversation

@hannahbaumann
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Jan 30, 2026

Codecov Report

❌ Patch coverage is 96.38554% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.00%. Comparing base (5260e3b) to head (7277f20).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
src/openfe_analysis/reader.py 92.85% 2 Missing ⚠️
src/openfe_analysis/rmsd.py 97.67% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #77      +/-   ##
==========================================
- Coverage   88.16%   87.00%   -1.17%     
==========================================
  Files           7        7              
  Lines         338      354      +16     
==========================================
+ Hits          298      308      +10     
- Misses         40       46       +6     

☔ 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.

# 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
Copy link
Member

Choose a reason for hiding this comment

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

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).

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"
Copy link
Member

Choose a reason for hiding this comment

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

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.

else:
size = self._dataset.dimensions["replica"].size

self._index = index % size
Copy link
Member

Choose a reason for hiding this comment

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

I would call this multistate_index or something like that, otherwise it gets very confusing with frame_index, etc...

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.

3 participants