Skip to content

[BUG] The feature module doesn't work with Python 3.10, but we support Python 3.10. It is mainly because of this type of attribution: #166

@bruAristimunha

Description

@bruAristimunha

The feature module doesn't work with Python 3.10, but we support Python 3.10. It is mainly because of this type of attribution:

==================================== ERRORS ====================================
___________________ ERROR collecting tests/test_features.py ____________________
.venv/lib/python3.10/site-packages/_pytest/python.py:498: in importtestmodule
mod = import_path(
.venv/lib/python3.10/site-packages/_pytest/pathlib.py:587: in import_path
importlib.import_module(module_name)
../../../.local/share/uv/python/cpython-3.10.18-linux-x86_64-gnu/lib/python3.10/importlib/init.py:126: in import_module
return _bootstrap._gcd_import(name[level:], package, level)
:1050: in _gcd_import
???
:1027: in _find_and_load
???
:1006: in _find_and_load_unlocked
???
:688: in _load_unlocked
???
.venv/lib/python3.10/site-packages/_pytest/assertion/rewrite.py:186: in exec_module
exec(co, module.dict)
tests/test_features.py:4: in
from eegdash.features.datasets import FeaturesDataset, FeaturesConcatDataset
eegdash/features/init.py:17: in
from .feature_bank import ( # Complexity; Connectivity; CSP; Dimensionality; Signal; Spectral
eegdash/features/feature_bank/init.py:8: in
from .complexity import (
E File "/home/runner/work/EEGDash/EEGDash/eegdash/features/feature_bank/complexity.py", line 39
E counts_m[*i, :] = _channel_app_samp_entropy_counts(x[i], m, rr[i], l)
E ^
E SyntaxError: invalid syntax

Originally posted by @bruAristimunha in #164 (comment)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions