Open ShiQiaoL opened 7 months ago
migrated to fireworks
since this is not a pymatgen
issue.
i suspect this is related to the recent numpy v2 release. what's your version?
it would be good for fireworks to replace all numpy.bool_
with regular Python bool
before trying to insert workflows into the DB
it would be good for fireworks to replace all
numpy.bool_
with regular Pythonbool
before trying to insert workflows into the DB
Hi, my numpy version is 1.26.4. sorry that I new studier, I don't know to do it replace all numpy.bool_ with regular Python bool by code.
i would first try to iterate through the wf.metadata
and print the types of all values:
for key, val in wf.metadata.items():
print(f"{key}: {type(val)}")
to see if the offending value is in there. once you know the key, you just cast to bool
wf.metadata[key] = bool(wf.metadata[key])
i would first try to iterate through the
wf.metadata
and print the types of all values:for key, val in wf.metadata.items(): print(f"{key}: {type(val)}")
to see if the offending value is in there. once you know the key, you just cast to
bool
wf.metadata[key] = bool(wf.metadata[key])
Thank you very much, it has worked successfully
Python version
Python 3.11.5
Pymatgen version
2024.3.1
Operating system version
CentOS Linux release 7.6.1810 (Core)
Current behavior
Expected Behavior
I hope it can run successfully. I have located the error caused by lp.add_wf(opt_wf). Additionally, I have successfully verified that this is not an issue with the mongoDB connection. Successfully tested the connection to mongoDB
Minimal example
Relevant files to reproduce this bug