-
Notifications
You must be signed in to change notification settings - Fork 23
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
Restart.yml file cannot be read in due to ConstructorError #279
Comments
Potentially relevant fix: facebookresearch/Detectron#840 |
I can confirm that changing Lines 266 to 268 in 8242bba
content = yaml.load(stream=f, Loader=yaml.Loader) appears to have solved my issue. @alongd is there any reason why you specified yaml.FullLoader here? In the meantime I'll look at PyYaml to see if they are aware of this issue and if they have a better fix, as well as try to learn more about what the differences are between these two loaders.
|
related to #223 |
from PyYAML: The current Loader choices are:
So I think the fix here should be converting any numpy arrays saved to the restart file to regular arrays, if we really need them, or getting rid of them. |
Thanks for the catch! I searched the open and closed issues before opening this one, but I forgot to check PRs as well. I think your proposed solution works as well. |
Convert negative frequencies troubleshooted to a list when dumping a species as a dictionary, see ReactionMechanismGenerator#223 and ReactionMechanismGenerator#279
I was running a large ARC job that crashed due to an unrelated and now fixed issue, and I tried to restart from the restart file generated by ARC previously. However, it appears that something is not getting saved correctly to the restart file. Below is the Traceback (I have edited to reduce the lengths of file paths, but I checked that everything was being called from the correct place).
The relevant lines from the restart file are given below:
Is this an ARC issue or a YAML issue?
The text was updated successfully, but these errors were encountered: