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

Question about save SPRING file #14

Open
njumay opened this issue Jun 19, 2019 · 7 comments
Open

Question about save SPRING file #14

njumay opened this issue Jun 19, 2019 · 7 comments

Comments

@njumay
Copy link

njumay commented Jun 19, 2019

I am learning the SPRING Viewer by repeating the code of tutorial pbmc 4K.
I have some trouble with the last step(Save SPRING files).
I got the error : TypeError: 1386 is not JSON serializable(https://github.com/njumay/SPRING/blob/master/spring_example_pbmc4k.ipynb).
I do not kown how to solve this problem.
I hope someone can help me. Thanks a lot.

@calebweinreb
Copy link
Collaborator

calebweinreb commented Jun 19, 2019 via email

@njumay
Copy link
Author

njumay commented Jun 19, 2019

I did not change anything in the notebook. And i run this notebook on python2.7 installing in Windows10.

@calebweinreb
Copy link
Collaborator

calebweinreb commented Jun 21, 2019 via email

@njumay
Copy link
Author

njumay commented Jun 23, 2019

Did you mean the feedback, when I ran the notebook? Since it is a little long, I upload the files to github. And this is the URL: https://github.com/njumay/SPRING/blob/master/spring_example_pbmc4k.ipynb .

@calebweinreb
Copy link
Collaborator

calebweinreb commented Jun 27, 2019 via email

@justinesjw
Copy link

Hi!

Thanks for the generating this software!

Is this problem solved? I am still facing the same error and this is the output after adding the line
image

Thanks!
Justine

@justinesjw
Copy link

Hi!

Fixed problem by adding this line after line 632

color_stats = {k:[int(i) for i in v] for k,v in color_stats.items()}

also removed .decode('utf-8') from a couple of lines

Thanks!!

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

3 participants