Describe the bug
Package problems when having a package name 'femmt' which imports .femmt.py
Seems to be that the package is builds successfully, but problems occour when generating the documentation.
When renaming 'femmt.py' e.g. to 'femmt_classes.py', this works fine.
To Reproduce
Steps to reproduce the behavior:
cd sphinx/
make clean
make html
See error
WARNING: autodoc: failed to import class 'MagneticComponent.VirtualWindingWindow' from module 'femmt'; the following exception was raised:
attempted relative import with no known parent package
When opening sphinx/build/html/index.html, the MagneticComponent-Class description is empty.
Expected behavior
Build documentation without mentioned warning, and display a documentation for MagneticComponent-class.
Describe the bug Package problems when having a package name 'femmt' which imports .femmt.py Seems to be that the package is builds successfully, but problems occour when generating the documentation. When renaming 'femmt.py' e.g. to 'femmt_classes.py', this works fine.
To Reproduce Steps to reproduce the behavior:
When opening sphinx/build/html/index.html, the MagneticComponent-Class description is empty.
Expected behavior Build documentation without mentioned warning, and display a documentation for MagneticComponent-class.