Skip to content

Commit

Permalink
update changelog and tests for PCA fix
Browse files Browse the repository at this point in the history
  • Loading branch information
marinegor committed Jan 12, 2024
1 parent 211cbcf commit d4de910
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions package/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The rules for this file:
* 2.8.0

Fixes
* Fix bug in PCA -- wasn't possible to use `frames=...` syntax before.
* Fix deploy action to use the correct version of the pypi upload action.

Enhancements
Expand Down
5 changes: 5 additions & 0 deletions testsuite/MDAnalysisTests/analysis/test_pca.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,11 @@ def test_no_frames(u):
with pytest.raises(ValueError):
PCA(u, select=SELECTION).run(stop=1)

def test_can_run_frames(u):
atoms = u.select_atoms(SELECTION)
u.transfer_to_memory()
PCA(u, select=SELECTION).run(frames=[0,1])


def test_transform(pca, u):
ag = u.select_atoms(SELECTION)
Expand Down

0 comments on commit d4de910

Please sign in to comment.