MouseLand / suite2p

cell detection in calcium imaging recordings
http://www.suite2p.org
GNU General Public License v3.0
360 stars 244 forks source link

Error when run ops file #1105

Closed KKroba closed 8 months ago

KKroba commented 8 months ago

Describe the issue:

When I run ops file in suite2p in python, it shows:Traceback (most recent call last): File "D:\ml\venv\lib\site-packages\suite2p\gui\rungui.py", line 441, in run_S2P pretrained_model_path = model_path(pretrained_model_string, 0, True) TypeError: model_path() takes from 1 to 2 positional arguments but 3 were given

Reproduce the code example:

Traceback (most recent call last):
  File "D:\ml\venv\lib\site-packages\suite2p\gui\rungui.py", line 441, in run_S2P
    pretrained_model_path = model_path(pretrained_model_string, 0, True)
TypeError: model_path() takes from 1 to 2 positional arguments but 3 were given

Error message:

No response

Version information:

newest

Context for the issue:

No response

chriski777 commented 8 months ago

Hey @KKroba, do you mind installing the latest version on the main branch and seeing if that fixes it for you? I believe we fixed this in #1093 but we might not have published a new release with this update.

Milamber64 commented 8 months ago

Hello,

We use suite2p all the time for our imaging analysis and love the software. We were getting a new student up and running with the software this week when we ran into this exact same issue. I would be interested to know how to resolve this issue as all the solutions we attempted have failed at this time. I will try the solution you linked in your comment.

KKroba commented 8 months ago

Hi,

I install it from GitHub again and solve it, hope it will help u.

Thanks

Harrison Stratton @.***>于2024年3月12日 周二16:27写道:

Hello,

We use suite2p all the time for our imaging analysis and love the software. We were getting a new student up and running with the software this week when we ran into this exact same issue. I would be interested to know how to resolve this issue as all the solutions we attempted have failed at this time. I will try the solution you linked in your comment.

— Reply to this email directly, view it on GitHub https://github.com/MouseLand/suite2p/issues/1105#issuecomment-1992616779, or unsubscribe https://github.com/notifications/unsubscribe-auth/BCEAWQTMVXT6RCVLLX3RJZLYX5XNJAVCNFSM6AAAAABEIGVVEOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSOJSGYYTMNZXHE . You are receiving this because you were mentioned.Message ID: @.***>

chriski777 commented 8 months ago

Great, glad to hear @KKroba! I'll close this issue and create a new release.