-
Notifications
You must be signed in to change notification settings - Fork 27
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
Stuck on 'Doing signal separation...' #147
Comments
Hi, thanks for your interest in our toolbox, and letting us know about this bug! In particular we will have to look at the binder implementation. Since it apparently stopped working even on the binder there might have been a package update in one our dependencies that has broken things. Couple of questions:
|
Hello, Thank you for the assistance! It looks like the issue is isolated to interacting with Suite2P and SIMA. The standard example notebook as well as the cNMF example notebook does not run into the bug. I also run into the same issue when I try to run the Suite2P example notebook on my personal Jupyter Notebook. |
Hi, @pocky12,
@swkeemink, I tried running the Suite2P notebook on Binder and it ran out of memory (exceeded 2GB), so I think it is probably due to a recent update to Suite2P which has changed its output. Although our unit tests currently report as failing on the main repo page, that's only on Python <3.5, where holoviews is broken. Python 3.6 and 3.7 are still passing unit tests. |
Hello, I apologize in advance if any of the information I provide is not what you are asking for, python is not my forte.
conda env list outputpip freeze output (a bit long, sorry):appdirs==1.4.4 |
Hello, I just wanted to follow-up on this issue to see if there have been any updates! Thanks again for your assistance :) pocky12 |
Hi @pocky12 , Sorry for the delay. I'm working on it, but no update yet! |
Since the SIMA notebook has the same problem I am not sure the problem is with Suite2P specifically. Although it might be two different issues, because the SIMA notebook binder does not run out of memory. |
Hello, Not a problem, I appreciate the update and your time. Any other updates you could provide as you move forward are always appreciated! Please let me know if there's anything I can do on my end to help out :) -pocky12 |
So after a long time and finally having fixed #150 (fix still to be added to the main repo), I have now finally succeeded in reproducing this problem on my own system and not just on Binder. Will hopefully be able to zero in on the reason soon. |
There seems to be a problem with multiprocessing in this specific use-case. Setting ncores_seperation=1 when declaring an experiment: Lets the notebook run as normal (but this will be a lot slower of course). |
After starting a new ipython instance everything works fine now and can no longer reproduce the bug. Will first push #150 and see if that also fixes the binder runs. |
So I CAN reproduce the error now. If I run a clean notebook and try to run the Suite2p analysis first, and then use multiprocessing in the fissa analysis, this then breaks. Perhaps with suite2p (at least the way we run it) the multiprocessing pool does not get properly closed? |
It might have something to do with that they switched from multiprocessing to numba for parallelization: MouseLand/suite2p@fc06986 |
So from this blog post: https://pythonspeed.com/articles/python-multiprocessing/
Unfortunately using the spawn-context makes an entirely new python instance basically, and our current way of loading custom datahandlers (importing a new datahandler library) breaks. My fix for #150 unfortunately relied on that. It was a very inelegant way of doing datahandlers anyway, and I will finally have to get on #16 seriously. |
Hello,
First of all, thank you for developing and publishing this fantastic resource for neuropil subtraction.
I have been trying to implement FISSA to extract responses from cells identified through suite2p. I followed the uploaded Jupyter Notebook tutorials and have checked my suite2p outputs, but whenever I run FISSA, the program cannot move past the 'Doing signal separation....' output when I run 'experiment.separate' (seems to be in an infinite loop as I left my program running for 7+ hours on a relatively small data-set before having to force-kill the program). I checked to make sure I was running the most recent FISSA package (0.7.2) as I noticed a previous user had also posted a similar issue in Spyder and the issue appeared to resolve with the the 0.7 version. Launching the example Jupyter binder on this GitHub for using Suite2p + FISSA on example data also runs into the same issue, so I do not believe the issue to be specific to my data.
Any assistance you could provide would be much appreciated!
Thank you,
pocky12
The text was updated successfully, but these errors were encountered: