Skip to content
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

Convert numpy types to their native python types #427

Merged
merged 3 commits into from
Sep 24, 2015

Conversation

LilithWittmann
Copy link
Contributor

I don't know exactly why but for some reason the json encoder in python3 can't encode some of the numpy datetypes. Now I simply converted the numpy data types (http://docs.scipy.org/doc/numpy/user/basics.types.html) to the respective python types. (#416)

LilithWittmann and others added 2 commits September 18, 2015 22:27
I don't know exactly why but for some reason the json encoder in python3 can't encode some of the numpy datetypes. Now I simply converted the numpy data types (http://docs.scipy.org/doc/numpy/user/basics.types.html) to the respective python types.
@@ -29,6 +29,8 @@
from sqlalchemy import event, exc
from sqlalchemy.pool import Pool

import numpy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's pretty standard to do import numpy as np, then it'll help with respecting the 80 char per line limit we've been following to stay in line with PEP8 when possible.

@LilithWittmann
Copy link
Contributor Author

@mistercrunch done!

@mistercrunch
Copy link
Member

Thanks!

mistercrunch added a commit that referenced this pull request Sep 24, 2015
Convert numpy types to their native python types
@mistercrunch mistercrunch merged commit 70b342f into apache:master Sep 24, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants