-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DifferentPrimitivesException in some COS calculations #278
Comments
Thanks for the report. This path looks wild. The issue is that at one point one internal coordinate gets invalid ( Locally, I just tried a patch that makes it work, but this is not a comprehensive solution and I'll have to take a closer look at this before I can push the patch. diff --git a/pysisyphus/cos/GrowingString.py b/pysisyphus/cos/GrowingString.py
index 41829acf..ead07439 100644
--- a/pysisyphus/cos/GrowingString.py
+++ b/pysisyphus/cos/GrowingString.py
@@ -296,7 +296,11 @@ class GrowingString(GrowingChainOfStates):
# is above or below the desired param_density on the normalized arc.
#
# The reparametrization is done in micro cycles, until it is converged.
- cur_param_density = self.get_cur_param_density()
+ try:
+ cur_param_density = self.get_cur_param_density()
+ except DifferentPrimitivesException:
+ self.reset_geometries(self.images[0])
+ cur_param_density = self.get_cur_param_density() For now this seems to converge reasonably using geom:
type: cart
fn: [start.xyz, end.xyz]
calc:
type: xtb
pal: 1
charge: 1
mult: 1
alpb: ch2cl2
acc: 0.1
preopt:
max_cycles: 5
cos:
type: gs
max_nodes: 21
climb: true
reparam_every: 2
reparam_every_full: 1
opt:
type: string
stop_in_when_full: 50
align: true # note that aling is enabled for 'cart' coords
coord_diff_thresh: 0.005 The Cartesian GSM stops after 50 cycles after growing fully
The patched GSM in DLC also stops after 50 cycles after being fully grown:
|
Thanks for your very quick reply and patch! Indeed, the path is pretty odd and I didn't necessarily expect Pysisyphus to nicely converge to a transition state, but the exception seemed unexpected. The patch indeed solves the issue, thank you very much! |
Yeah, it solves this issue but the patch relies on the fact that |
Describe the bug
A small, but constant portion of growing string calculations I launch end up crashing with this exception:
This is very similar to a bug I previously reported (#218)
To Reproduce
The crash occurs repeatably using these input files:
input_files.zip
Expected behavior
I would expect either the calculation to work or Pysisyphus to handle this exception and stop gracefully.
OS and Python:
Pysisyphus version
This kind of crash has been occurring randomly for at least two months (although most calculations worked fine) and I confirmed that the behavior is the same with the latest commit on
master
(5950976)The text was updated successfully, but these errors were encountered: