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

Not JSON serializable #54

Open
Deki4 opened this issue Jul 23, 2018 · 1 comment
Open

Not JSON serializable #54

Deki4 opened this issue Jul 23, 2018 · 1 comment

Comments

@Deki4
Copy link

Deki4 commented Jul 23, 2018

When attempting to plot matplotlib path and line collection I get the error "TypeError: Object of type 'int64' is not JSON serializable" because the collection is a numpy array.

I am able to fix this manually with a tolist() argument in the _display() module.

Was wondering if this will be addressed in a future release?

Thanks

@rodrigolece
Copy link

@Deki4 where exactly did you add the tolist() call?

I tried the line that throws the error in my case gjdata = json.dumps(renderer.geojson().tolist()) but that didn't work...

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

No branches or pull requests

2 participants