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

Assertion error starting Phy2 for KS3 data #355

Closed
HiroyukiKato7 opened this issue Mar 10, 2021 · 2 comments · Fixed by #595
Closed

Assertion error starting Phy2 for KS3 data #355

HiroyukiKato7 opened this issue Mar 10, 2021 · 2 comments · Fixed by #595

Comments

@HiroyukiKato7
Copy link

I'm not sure if this is related to #329, but I get an assertion error starting Phy2 for KS3 data. The same recording data sorted with KS2 has no problem. In case of #329, it seems that Phy2 at least opened, but in my case the Phy2 window does not even open. The error message is as follows:

←[31m17:08:41.799 [E] init:62 An error has occurred (AssertionError):
Traceback (most recent call last):
File "(path)\anaconda3\envs\phy2\lib\runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "(path)\anaconda3\envs\phy2\lib\runpy.py", line 85, in run_code
exec(code, run_globals)
File "(path)\anaconda3\envs\phy2\Scripts\phy.exe_main
.py", line 9, in
sys.exit(phycli())
File "(path)\anaconda3\envs\phy2\lib\site-packages\click\core.py", line 764, in call
return self.main(*args, **kwargs)
File "(path)\anaconda3\envs\phy2\lib\site-packages\click\core.py", line 717, in main
rv = self.invoke(ctx)
File "(path)\anaconda3\envs\phy2\lib\site-packages\click\core.py", line 1137, in invoke
return process_result(sub_ctx.command.invoke(sub_ctx))
File "(path)\anaconda3\envs\phy2\lib\site-packages\click\core.py", line 956, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "(path)\anaconda3\envs\phy2\lib\site-packages\click\core.py", line 555, in invoke
return callback(*args, **kwargs)
File "(path)\anaconda3\envs\phy2\lib\site-packages\click\decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "(path)\anaconda3\envs\phy2\lib\site-packages\phy\apps_init
.py", line 136, in cli_template_gui
template_gui(params_path, **kwargs)
File "(path)\anaconda3\envs\phy2\lib\site-packages\phy\apps\template\gui.py", line 187, in template_gui
controller = TemplateController(**get_template_params(params_path), **kwargs)
File "(path)\anaconda3\envs\phy2\lib\site-packages\phy\apps\base.py", line 676, in init
self.model = self._create_model(dir_path=dir_path, **kwargs) if model is None else model
File "(path)\anaconda3\envs\phy2\lib\site-packages\phy\apps\template\gui.py", line 84, in _create_model
return TemplateModel(dir_path=dir_path, **kwargs)
File "(path)\anaconda3\envs\phy2\lib\site-packages\phylib\io\model.py", line 276, in init
self._load_data()
File "(path)\anaconda3\envs\phy2\lib\site-packages\phylib\io\model.py", line 312, in _load_data
assert self.channel_positions.shape == (nc, 2)
AssertionError
←[0m

I would appreciate it if I could get help in resolving this issue.

Thanks

@HiroyukiKato7
Copy link
Author

It seems that this happens when I exclude some channels for sorting. I can open Phy when I use the whole 64 channels. (This is from Cambridge 64-ch linear probe recording)

@javierzsm
Copy link

hi,
similar problem here using phy2 to load data produced by kilosort3 (updated on sept 03, 2021). I didn't have the problem before.

assertion error phy2

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

Successfully merging a pull request may close this issue.

2 participants