TorchDSP / torchsig

TorchSig is an open-source signal processing machine learning toolkit based on the PyTorch data handling pipeline.
MIT License
174 stars 40 forks source link

pytest > collected 125 items / 1 error ; ImportError: cannot import name 'SignalDescription' #241

Closed springyworks closed 2 months ago

springyworks commented 4 months ago

Describe the bug

$pytest
...
platform linux -- Python 3.12.3, pytest-8.2.2, pluggy-1.5.0
rootdir: /home/kos/py/torchsig12jun_kos
configfile: pyproject.toml
collected 125 items / 1 error                                                                        
...
 ERROR collecting tests/test_transforms_figures.py __________________________
ImportError while importing test module '/home/kos/py/torchsig12jun_kos/tests/test_transforms_figures.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test_transforms_figures.py:3: in <module>
    from torchsig.utils.types import SignalData, SignalDescription
E   ImportError: cannot import name 'SignalDescription' from 'torchsig.utils.types' (/home/kos/py/torchsig12jun_kos/torchsig/utils/types.py)

Expected behavior no errors , no warnings (pytest)

Desktop (please complete the following information): vscode on WSL2

ereoh commented 2 months ago

We no longer use SignalDescription for our datasets. Additionally more units test are in development/being updated.