TorchDSP / torchsig

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

Running examples in examples/ directory produces error #159

Closed MattCarrickPL closed 1 year ago

MattCarrickPL commented 1 year ago

Running the examples in examples/ produces an error $ python3 00_example_sig53_dataset.py

Traceback (most recent call last): File "00_example_sig53_dataset.py", line 10, in from torchsig.datasets.modulations import ModulationsDataset File "/home/USER/.local/lib/python3.8/site-packages/torchsig/datasets/modulations.py", line 19, in from torchsig.transforms.target_transforms import ( ImportError: cannot import name 'DescToClassIndex' from 'torchsig.transforms.target_transforms' (/home/USER/.local/lib/python3.8/site-packages/torchsig/transforms/target_transforms/init.py)

However, running the examples from the top-level directory works: $ python3 examples/00_example_sig53_dataset.py

Users will naturally cd into examples/ and run scripts from there. Any way to resolve the import issue?

gvanhoy commented 1 year ago

I can transform these back into notebooks.

MattCarrickPL commented 1 year ago

Is transformation back into notebooks the only way to resolve?

MattCarrickPL commented 1 year ago

Notebooks appears best path forward, closing