dsp-uga / Johnson

Implementation of Project 3 for Data Science Practicum CSCI 8360 -- Neuron Segmentation. Datasets are from codeneuro website
http://neurofinder.codeneuro.org/
MIT License
2 stars 1 forks source link

Loading example.py #1

Closed whusym closed 6 years ago

whusym commented 6 years ago

image

So I got this the error when loading data using the example.py. No idea why. Environment - py3.6. I don't think I need to install any extra libraries but I just can't get it work.

It works in my py2.7 environment though. I don't really want to use py2.7 ... /shrug

melanieihuei commented 6 years ago

I just figured out that its neurofinder-python only support python 2.7/3.4 but not this one.

The problem is that python 3.x returns an iterator (e.g. <zip object at 0x1a11bb9348>) but not the list we want. Change it into a list in the tomask function then everything should work! :)

image

melanieihuei commented 6 years ago

this stackoverflow answers the iterator issue: https://stackoverflow.com/questions/19278084/zip-function-giving-incorrect-output

whusym commented 6 years ago

This is awesome! Thanks!

whusym commented 6 years ago

It takes forever for me to run it though.... any suggestions on making it faster?

(My bad.. it's solved now.)