-
Notifications
You must be signed in to change notification settings - Fork 50
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
Crash with granularity='frame' #218
Comments
Thanks for the bug report @dgoodwin208 . The problem is that the relevant line in the if len(d) == 2:
d = [0] + d` Perhaps something like that would work here. You may have to check the dimensionality of the Based on these pointers, are you able to try to fix this and submit a pull request? |
Hey @pkaifosh, I've been trying to contribute but I'm having trouble getting running with the master. I'm getting stuck as the setup.py can't see a /sima/motion/_motion.c file. What do you think I should do? Thanks! I attached output below
|
If you are compiling from source, then the .c file needs to be made with cython from the .pyx file. If you have Cython installed, then I believe this should happen automatically. |
Hi,
First - this is a great package, thank you for the contribution and the maintenance :)
Second - I'm getting some pretty significant motion correction artifacts when I use the default granularity of row in the hidden markov 2d.
Result:
Traceback (most recent call last): File "runsima.py", line 52, in <module> sequences, dataset_path, channel_names=['Arcon'], File "/Users/Goody/Neuro/Arcon/venv/lib/python2.7/site-packages/sima/motion/motion.py", line 130, in correct frame_shape) File "/Users/Goody/Neuro/Arcon/venv/lib/python2.7/site-packages/sima/motion/motion.py", line 201, in _trim_coords for d in it.chain.from_iterable(displacements)) File "/Users/Goody/Neuro/Arcon/venv/lib/python2.7/site-packages/sima/motion/motion.py", line 201, in <genexpr> for d in it.chain.from_iterable(displacements)) File "/Users/Goody/Neuro/Arcon/venv/lib/python2.7/site-packages/sima/motion/motion.py", line 232, in _observation_counts z, y, x = displacements ValueError: need more than 2 values to unpack
if I change to
granularity=('row',1)
it works fine. Any ideas? (using 1.3.0 from pip)Thanks!
The text was updated successfully, but these errors were encountered: