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?
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?