Skip to content

Commit e2533a0

Browse files
committed
Use economic_generation in scissors
1 parent 0293f78 commit e2533a0

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

arc/species/species.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1127,6 +1127,7 @@ def generate_conformers(self,
11271127
n_confs: int = 10,
11281128
e_confs: float = 5,
11291129
plot_path: str = None,
1130+
economic_generation: bool = False,
11301131
) -> None:
11311132
"""
11321133
Generate conformers.
@@ -1138,6 +1139,10 @@ def generate_conformers(self,
11381139
(unique) generated conformers will be stored in the .conformers attribute.
11391140
plot_path (str, optional): A folder path in which the plot will be saved.
11401141
If None, the plot will not be shown (nor saved).
1142+
economic_generation (bool, optional): Use a scaled-down (but still n_rotors / n_heavy-dependent)
1143+
conformer count. Intended for cheap use-cases such as BDE
1144+
scissors fragments and atom-mapping fingerprints, where
1145+
full auto-scaling is wasteful.
11411146
"""
11421147
if self.is_ts:
11431148
return
@@ -1158,6 +1163,7 @@ def generate_conformers(self,
11581163
return_all_conformers=False,
11591164
plot_path=plot_path,
11601165
diastereomers=diastereomers,
1166+
economic_generation=economic_generation,
11611167
)
11621168
if len(lowest_confs):
11631169
self.conformers.extend([conf['xyz'] for conf in lowest_confs])
@@ -1997,7 +2003,7 @@ def _scissors(self,
19972003
charge=mol_splits[0].get_net_charge(),
19982004
compute_thermo=False,
19992005
e0_only=True)
2000-
spc1.generate_conformers()
2006+
spc1.generate_conformers(economic_generation=True)
20012007
return [spc1]
20022008
elif len(mol_splits) == 2:
20032009
mol1, mol2 = mol_splits
@@ -2052,7 +2058,7 @@ def _scissors(self,
20522058
compute_thermo=False,
20532059
e0_only=True,
20542060
keep_mol=True)
2055-
spc1.generate_conformers()
2061+
spc1.generate_conformers(economic_generation=True)
20562062
spc1.rotors_dict = None
20572063
spc2 = ARCSpecies(label=label2,
20582064
mol=mol2,
@@ -2062,7 +2068,7 @@ def _scissors(self,
20622068
compute_thermo=False,
20632069
e0_only=True,
20642070
keep_mol=True)
2065-
spc2.generate_conformers()
2071+
spc2.generate_conformers(economic_generation=True)
20662072
spc2.rotors_dict = None
20672073

20682074
return [spc1, spc2]

0 commit comments

Comments
 (0)