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

Butterworth filter #51

Closed
merlinthemagician opened this issue May 26, 2021 · 4 comments
Closed

Butterworth filter #51

merlinthemagician opened this issue May 26, 2021 · 4 comments

Comments

@merlinthemagician
Copy link

Good afternoon,
When attempting to apply a Butterworth filter to a stack of images, the command seems to get stuck, for the example I ran at "Creating process 14/16". This is not necessarily related to the filter itself, it is accompanied by an error message "Too many open windows". Hitting the "Stop" button leads to IndexError exceptions ("list index out of range") and flika needs to be terminated.

Thanks a lot and best wishes
Ivo

P.S.: Traceback at "Creating process 14/16":

Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/flika-0.2.33-py3.9.egg/flika/process/progress_bar.py", line 28, in run
File "/usr/local/Cellar/python@3.9/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 103, in Queue
File "/usr/local/Cellar/python@3.9/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/queues.py", line 48, in init
File "/usr/local/Cellar/python@3.9/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 68, in Lock
File "/usr/local/Cellar/python@3.9/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/synchronize.py", line 162, in init
File "/usr/local/Cellar/python@3.9/3.9.4/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/synchronize.py", line 57, in init
OSError: [Errno 24] Too many open files

@merlinthemagician
Copy link
Author

Similar to #50 this is related to calling deprecated methods. It can be fixed by using a previous Python version (Python 3.8.10 worked for me).

@kyleellefsen
Copy link
Member

Hi Ivo,

I just upgraded my python to version 3.9.5 on MacOS Big Sur, created a fresh virtual environment, install all flika dependencies, and am unable to recreate this error. Which deprecated methods are being called?

@merlinthemagician
Copy link
Author

Hi Kylle,
thanks for looking into this issue. I've tested calling the Butterworth filter again both with a virtual environment as well as my system installation of python 3.9.5 and I wasn't able to reproduce this issue either. I assume that it was related to the sequence of commands that I ran earlier. I believed that this was related to calls to deprecated methods but the Traceback suggests that it is instead related to parallelisation. My apologies, it seems that it is not related to #50.
Thanks a lot and best wishes
Ivo

@kyleellefsen
Copy link
Member

Ok since we can reproduce it I'm closing this issue.

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

2 participants