Skip to content

Commit

Permalink
Fix the previous commit about mean_rmsd calculation (2ksa)
Browse files Browse the repository at this point in the history
  • Loading branch information
yokochi47 committed Mar 4, 2024
1 parent 62a2de7 commit 91b81e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion wwpdb/utils/nmr/io/CifReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -1408,7 +1408,7 @@ def __calculateRmsd(self, chain_ids, lengths, total_models=1, eff_model_ids: lis

for ref_model_id in range(1, _total_models):

if ref_model_id not in eff_domain_id:
if ref_model_id not in eff_model_ids:
continue

_atom_site_ref = _atom_site_dict[ref_model_id]
Expand Down
5 changes: 5 additions & 0 deletions wwpdb/utils/nmr/mr/XplorMRReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,11 @@ def parse(self, mrFilePath, cifFilePath=None, isFilePath=True,


if __name__ == "__main__":
reader = XplorMRReader(True)
reader.setDebugMode(True)
reader_listener, _, _ = reader.parse('../../tests-nmr/mock-data-remediation/2muk/2muk-trimmed.mr',
'../../tests-nmr/mock-data-remediation/2muk/2muk.cif')

reader = XplorMRReader(True)
reader.setDebugMode(True)
reader.parse('../../tests-nmr/mock-data-remediation/2kny/2kny-corrected.mr',
Expand Down

0 comments on commit 91b81e4

Please sign in to comment.