Question about save SPRING file
njumay opened this issue · 7 comments
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.
I did not change anything in the notebook. And i run this notebook on python2.7 installing in Windows10.
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 .
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!!