-
Notifications
You must be signed in to change notification settings - Fork 74
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
BUG: A Molecule
object in the cclib TaskDocument
can't be printed
#406
Comments
I had something similar with the Bandstructure Object. materialsproject/pymatgen#3096 |
Interesting... thanks for sharing! |
I'm guessing this is a deserialization bug in atomate2/src/atomate2/common/schemas/cclib.py Line 130 in 896604a
and then asked for the atomate2/src/atomate2/common/schemas/cclib.py Line 190 in 896604a
Coordinates clearly shouldn't be parsed as strings but floats. I don't think going from We could accommodate for string types in |
I'm closing this as not reproducible. I did conda create --name atomate2 python=3.10
pip install pymatgen atomate2 cclib and ran the above code block. It works fine. However, in another environment I have, it does not work. Both have the same versions of Python, pymatgen, cclib, atomate2, and numpy, so I'm at a loss. I'll just pray that it doesn't come up again, but if it does, I'll re-open the issue. |
I've reopened it because I can now reproduce the issue! lol. It only happens with the
|
Minimal example:
orca.out.txt
Traceback:
The issue is in
task["attributes"]["molecule_unoriented"].sites
I believe. Something is getting stored as anp.str_
instead ofstr
. Annoying.Tagging @janosh in case this has something to do with Pymatgen directly, but I don't think it does. I'll revisit this in a few days.
The text was updated successfully, but these errors were encountered: