-
Notifications
You must be signed in to change notification settings - Fork 0
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
Writing JSON from npz
fails because int64 is not JSON serializable
#14
Comments
json doesn't understand numpy types, you can call array.tolist() before trying to serialize |
Makes sense. I was just wondering whether or not this used to work in the past, considering that the CI test seems to output JSON just fine. I guess when we build |
The python exception is annoyingly cryptic about where the problem is. However since the JSON file is sequentially written just up to where the error occurs, it appears that the problem are the metadata (likely the Edit: this is due to us storing metadata in the |
I am trying to convert old
npz
test data to JSON in order to make CI testing ofskymap_scanner
more transparent. Although such conversion seems to fail.The text was updated successfully, but these errors were encountered: