Skip to content

Commit 3ef792f

Browse files
committed
simplify systemPrepare test failing on LYS residue hydrogen coordinates
1 parent 3d37bbb commit 3ef792f

File tree

3 files changed

+4747
-27158
lines changed

3 files changed

+4747
-27158
lines changed

tests/test_systemprepare.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ def _test_nonstandard_residues(tmp_path, files):
192192
}
193193
mol = Molecule(os.path.join(test_home, inf))
194194
if inf == "2QRV.pdb":
195+
mol.filter("chain A D K")
195196
mol = autoSegment2(mol, fields=("chain", "segid"))
196197
mol.set("chain", "W", sel="water")
197198

@@ -204,14 +205,6 @@ def _test_nonstandard_residues(tmp_path, files):
204205
pmol.fileloc.append(os.path.join(tmp_path, "prepared.pdb"))
205206
pmol.write(pmol.fileloc[0])
206207

207-
if inf == "2QRV.pdb":
208-
_ref = Molecule(os.path.join(test_home, f"{outf}.pdb"))
209-
print(
210-
"DEBUG MAX DIFF",
211-
np.max(np.abs(pmol.coords - _ref.coords)),
212-
)
213-
print("IDX", np.where(np.abs(pmol.coords - _ref.coords) > 5e-3))
214-
215208
_compare_results(
216209
os.path.join(test_home, f"{outf}.pdb"),
217210
os.path.join(test_home, f"{outf}.csv"),

0 commit comments

Comments
 (0)