tidy3d icon indicating copy to clipboard operation
tidy3d copied to clipboard

cleaning up imports to avoid circular dependencies with custom components

Open tylerflex opened this issue 3 years ago • 0 comments

Moved all imports from:

  • tidy3d/components/__init__.py
  • tidy3d/components/data/__init__.py
  • tidy3d/components/grid/__init__.py To tidy3d/__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.

tylerflex avatar Aug 28 '22 10:08 tylerflex