tidy3d
tidy3d copied to clipboard
cleaning up imports to avoid circular dependencies with custom components
Moved all imports from:
tidy3d/components/__init__.pytidy3d/components/data/__init__.pytidy3d/components/grid/__init__.pyTotidy3d/__init__.py
Note: this fixes the circular import that happens when trying to import a data component (ie FieldData) into a component file, like structure.py, geometry.py, medium.py due to the Structure Grid Symmetry pathway described in my slides.
To test this, try to FieldData in structure.py and it will fail in develop but pass in this branch.