Skip to content

Commit

Permalink
Set expected list of elements for Parmed PSF test (#4016)
Browse files Browse the repository at this point in the history
Fixes #4015 
* fix expected list of elements for Parmed PSF test
  • Loading branch information
IAlibay authored Jan 30, 2023
1 parent d73523f commit c7c5f0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions package/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ The rules for this file:
* 2.5.0

Fixes
* Fix element parsing from PSF files tests read via Parmed (Issue #4015)
* Fix test clobbering in lib/test_util.py (PR #4000)
* Fix MSD docs to use the correct error metric in example (Issue #3991)
* Add 'PairIJ Coeffs' to the list of sections in LAMMPSParser.py
Expand Down
6 changes: 4 additions & 2 deletions testsuite/MDAnalysisTests/converters/test_parmed_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,11 @@ class TestParmedParserPSF(BaseTestParmedParser):
expected_n_dihedrals = 8921
expected_n_impropers = 541
expected_n_cmaps = 212
elems_ranges = ((0, 3342),)
elems_ranges = ((100, 120),)
# No atomic numbers set by parmed == no elements
expected_elems = (np.array(['' for i in range(3341)], dtype=object),)
expected_elems = (np.array(
['N', 'H', 'C', 'H', 'C', 'H', 'H', 'C', 'H', 'C', 'H', 'H', 'H', 'C',
'H', 'H', 'H', 'C', 'O', 'N',], dtype=object),)

def test_bonds_atom_counts(self, universe):
assert len(universe.atoms[[0]].bonds) == 4
Expand Down

0 comments on commit c7c5f0a

Please sign in to comment.