Open JaGeo opened 1 year ago
I am not sure the issue is pymatgen related or emmet-related.
Neither I think. I assume bandstructures should not be saved using numpy
types, so just an issue with our db.
@munrojm Would a re-parse fix this?
@JaGeo Here's a temporary workaround:
json.dump(band.as_dict(), f, default=lambda x: int(x) if isinstance(x, np.int64) else x)
@janosh @munrojm I am not sure the issue is pymatgen related or emmet-related. The following code fails as the BandstructureSymmline cannot be converted to a serializable json....
I get
TypeError: Object of type int64 is not JSON serializable
. It works for other mpids such as "mp-406".Plotting also works: