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

Added type annotation to ntbuff in params.py #78

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

manusmad
Copy link

@manusmad manusmad commented Jul 8, 2023

Error thrown during import by pydantic since type annotation was missing for field 'ntbuff' in params.py. Simple fix.

import pykilosort
  File "<stdin>", line 1, in <module>
  File "pykilosort/__init__.py", line 12, in <module>
    from .main import run, run_export, run_spikesort, run_preprocess
  File "site-packages/pykilosort/main.py", line 14, in <module>
    from .params import KilosortParams
  File "site-packages/pykilosort/params.py", line 63, in <module>
    class KilosortParams(BaseModel):
  File "site-packages/pydantic/_internal/_model_construction.py", line 95, in __new__
    private_attributes = inspect_namespace(
  File "site-packages/pydantic/_internal/_model_construction.py", line 324, in inspect_namespace
    raise PydanticUserError(
pydantic.errors.PydanticUserError: Field 'ntbuff' requires a type annotation

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 this pull request may close these issues.

None yet

1 participant