Skip to content
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

Filtering pytng reader warnings (resolves #3986) #4010

Merged
merged 1 commit into from
Feb 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions package/AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ Chronological list of authors
- Mikhail Glagolev
2023
- Christian Pfaendner
- Pratham Chauhan


External code
Expand Down
2 changes: 1 addition & 1 deletion package/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The rules for this file:
* release numbers follow "Semantic Versioning" http://semver.org

------------------------------------------------------------------------------
??/??/?? IAlibay, pgbarletta, mglagolev, hmacdope, manuel.nuno.melo, chrispfae
??/??/?? IAlibay, pgbarletta, mglagolev, hmacdope, manuel.nuno.melo, chrispfae, ooprathamm

* 2.5.0

Expand Down
4 changes: 4 additions & 0 deletions testsuite/MDAnalysisTests/coordinates/test_tng.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ def iter_ts(self, i):
return ts


@pytest.mark.filterwarnings("ignore:Empty string")
@pytest.mark.filterwarnings("ignore:Stride of block")
@pytest.mark.skipif(not HAS_PYTNG, reason="pytng not installed")
class TestTNGCoordinatesTraj(MultiframeReaderTest):
@staticmethod
Expand Down Expand Up @@ -118,6 +120,7 @@ def test_tng_traj_uneven_blocks():
_ = mda.Universe(TNG_traj_gro, TNG_traj_uneven_blocks)


@pytest.mark.filterwarnings("ignore:Failed read for block")
@pytest.mark.skipif(not HAS_PYTNG, reason="pytng not installed")
class TestTNGTraj(object):

Expand Down Expand Up @@ -344,6 +347,7 @@ def test_parse_n_atoms(self, universe):
assert universe.trajectory.parse_n_atoms(TNG_traj) == self._n_atoms


@pytest.mark.filterwarnings("ignore:Off stride read for block")
@pytest.mark.skipif(not HAS_PYTNG, reason="pytng not installed")
class TestTNGTraj_vels_forces(object):

Expand Down