Skip to content

Commit

Permalink
make defaults the same as old
Browse files Browse the repository at this point in the history
  • Loading branch information
nwmoriarty committed Sep 23, 2024
1 parent 12911b3 commit d82c251
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cctbx/geometry_restraints/tst_nonbonded_overlaps.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ def test_atom_selection(self):
outstring = '{0} , expected {1:.2f}, actual {2:.2f}'
params = mmtbx.model.manager.get_default_pdb_interpretation_params()
params.pdb_interpretation.allow_polymer_cross_special_position=True
params.pdb_interpretation.automatic_linking.link_residues=False
pdb_inp = iotbx.pdb.input(lines=raw_records3.split("\n"), source_info=None)
model = mmtbx.model.manager(
model_input = pdb_inp,
Expand Down Expand Up @@ -677,11 +678,14 @@ def test_labels_and_addition_scatterers(self):
Test overlaps when adding and moving scatterers
Test water scatterers with and without labels
'''
params = mmtbx.model.manager.get_default_pdb_interpretation_params()
params.pdb_interpretation.allow_polymer_cross_special_position=True
params.pdb_interpretation.automatic_linking.link_residues=False
pdb_inp = iotbx.pdb.input(lines=raw_records3.split('\n'), source_info=None)
model = mmtbx.model.manager(
model_input = pdb_inp,
log = null_out())
model.process(make_restraints=True)
model.process(pdb_interpretation_params=params, make_restraints=True)
outstring = '{0} , expected {1:.2f}, actual {2:.2f}'
geometry = model.get_restraints_manager().geometry
xrs = model.get_xray_structure()
Expand Down Expand Up @@ -711,6 +715,7 @@ def test_labels_and_addition_scatterers(self):
pdb_str = model.model_as_pdb()
params = mmtbx.model.manager.get_default_pdb_interpretation_params()
params.pdb_interpretation.allow_polymer_cross_special_position=True
params.pdb_interpretation.automatic_linking.link_residues=False
pdb_inp = iotbx.pdb.input(lines=pdb_str.split('\n'), source_info=None)
model = mmtbx.model.manager(
model_input = pdb_inp,
Expand Down Expand Up @@ -1078,6 +1083,7 @@ def process_raw_records(
params = mmtbx.model.manager.get_default_pdb_interpretation_params()
params.pdb_interpretation.allow_polymer_cross_special_position=True
params.pdb_interpretation.clash_guard.nonbonded_distance_threshold = None
params.pdb_interpretation.automatic_linking.link_residues=False
pdb_inp = iotbx.pdb.input(lines=records, source_info=None)
model = mmtbx.model.manager(
model_input = pdb_inp,
Expand Down
1 change: 1 addition & 0 deletions cctbx/geometry_restraints/tst_process_nonbonded_proxies.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def get_clashes_result(raw_records, sel=None):
params = mmtbx.model.manager.get_default_pdb_interpretation_params()
params.pdb_interpretation.allow_polymer_cross_special_position=True
params.pdb_interpretation.clash_guard.nonbonded_distance_threshold = None
params.pdb_interpretation.automatic_linking.link_residues=False
pdb_inp = iotbx.pdb.input(lines=raw_records.split("\n"), source_info=None)
model = mmtbx.model.manager(
model_input = pdb_inp,
Expand Down

0 comments on commit d82c251

Please sign in to comment.