Skip to content
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

Receiving KeyError: conformers when attempting to arcrestart #622

Open
calvinp0 opened this issue Mar 25, 2023 · 4 comments · Fixed by #621
Open

Receiving KeyError: conformers when attempting to arcrestart #622

calvinp0 opened this issue Mar 25, 2023 · 4 comments · Fixed by #621

Comments

@calvinp0
Copy link
Member

calvinp0 commented Mar 25, 2023

Describe the bug

!!! Warning !!! Distance between atoms 5 and 4 (0.970541 A) is suspicious.
Warning: Isomorphism check for all conformers of species r_82_[O-][Np][=O]O failed at wb97xd/def2svp. Attempting to troubleshoot using a different level.

Traceback (most recent call last):
  File "/Local/ce_dana/Code/ARC//ARC.py", line 69, in <module>
    main()
  File "/Local/ce_dana/Code/ARC//ARC.py", line 65, in main
    arc_object.execute()
  File "/Local/ce_dana/Code/ARC/arc/main.py", line 583, in execute
    fine_only=self.fine_only,
  File "/Local/ce_dana/Code/ARC/arc/scheduler.py", line 484, in __init__
    self.schedule_jobs()
  File "/Local/ce_dana/Code/ARC/arc/scheduler.py", line 494, in schedule_jobs
    self.determine_most_stable_conformer(species.label)
  File "/Local/ce_dana/Code/ARC/arc/scheduler.py", line 2001, in determine_most_stable_conformer
    self.troubleshoot_conformer_isomorphism(label=label)
  File "/Local/ce_dana/Code/ARC/arc/scheduler.py", line 3317, in troubleshoot_conformer_isomorphism
    job = self.job_dict[label]['conformers'][0]
KeyError: 'conformers'
(arc_env) calvinp@tech-ui02:/storage/ce_dana/calvinp/runs/nn_arc/low_level/50_rows_71_to_120_r$ 

How to reproduce
I have an input file with 50 reactions to check and when attempting to restart the run due another issue, it then reports a KeyError: conformers

Here is the restart.yml

restart.zip

@calvinp0
Copy link
Member Author

calvinp0 commented Mar 26, 2023

This is the self.job_dict before it runs into

  File "/Local/ce_dana/Code/ARC/arc/scheduler.py", line 3317, in troubleshoot_conformer_isomorphism
    job = self.job_dict[label]['conformers'][0]

job_dict.csv

@calvinp0
Copy link
Member Author

so in the scheduler, in def troubleshoot_conformer_isomorphism(self, label: str): it gets to this line

job = self.job_dict[label]['conformers'][0]

and then has a KeyError: conformers

the label is 'r_82_[O-][Np][=O]O' and self.job_dict[labell] returns an empty dictionary, {}

@calvinp0
Copy link
Member Author

From my understanding and assumptions, it appears that during the restart, even if a molecule had this error:
'Error: No conformer was found to be isomorphic with the 2D graph representation at wb97xd/def2svp; Error: No conformer was found to be isomorphic with the 2D graph representation at wb97xd/def2svp; Error: No conformer was found to be isomorphic with the 2D graph representation at wb97xd/def2svp; Error: No conformer was found to be isomorphic with the 2D graph representation!; Error: No conformer was found to be isomorphic with the 2D graph representation at wb97xd/def2svp; '

It will try to troubleshoot the conformer isomorphism by finding the first conformer of a species to determine applicable troubleshooting method - but what if no conformer was found at all?

@calvinp0 calvinp0 linked a pull request Mar 26, 2023 that will close this issue
@calvinp0 calvinp0 reopened this Mar 26, 2023
@calvinp0
Copy link
Member Author

Issue has returned

!!! Warning !!! Distance between atoms 5 and 4 (0.970541 A) is suspicious.
Warning: Isomorphism check for all conformers of species r_82_[O-][Np][=O]O failed at wb97xd/def2svp. Attempting to troubleshoot using a different level.
Traceback (most recent call last):
  File "/Local/ce_dana/Code/ARC//ARC.py", line 69, in <module>
    main()
  File "/Local/ce_dana/Code/ARC//ARC.py", line 65, in main
    arc_object.execute()
  File "/Local/ce_dana/Code/ARC/arc/main.py", line 583, in execute
    fine_only=self.fine_only,
  File "/Local/ce_dana/Code/ARC/arc/scheduler.py", line 486, in __init__
    self.schedule_jobs()
  File "/Local/ce_dana/Code/ARC/arc/scheduler.py", line 496, in schedule_jobs
    self.determine_most_stable_conformer(species.label)
  File "/Local/ce_dana/Code/ARC/arc/scheduler.py", line 2005, in determine_most_stable_conformer
    self.troubleshoot_conformer_isomorphism(label=label)
  File "/Local/ce_dana/Code/ARC/arc/scheduler.py", line 3321, in troubleshoot_conformer_isomorphism
    job = self.job_dict[label]['conformers'][0]
KeyError: 'conformers'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant