refactor: Ran lint fix
parent
b5a4b6b0a1
commit
269af4ba32
|
@ -1,4 +1,3 @@
|
||||||
import enum
|
|
||||||
import pydantic as pyd
|
import pydantic as pyd
|
||||||
import typing_extensions as pytypes_ext
|
import typing_extensions as pytypes_ext
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import typing as typ
|
|
||||||
|
|
||||||
from .base import ManagedObj
|
from .base import ManagedObj
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import functools
|
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import io
|
import io
|
||||||
import time
|
|
||||||
import typing as typ
|
import typing as typ
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
|
|
|
@ -6,8 +6,8 @@ import numpy as np
|
||||||
|
|
||||||
from ....utils import logger
|
from ....utils import logger
|
||||||
from .. import contracts as ct
|
from .. import contracts as ct
|
||||||
from .managed_bl_collection import managed_collection, preview_collection
|
|
||||||
from . import base
|
from . import base
|
||||||
|
from .managed_bl_collection import managed_collection, preview_collection
|
||||||
|
|
||||||
log = logger.get(__name__)
|
log = logger.get(__name__)
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,6 @@ import bpy
|
||||||
|
|
||||||
from ...utils import logger
|
from ...utils import logger
|
||||||
from . import contracts as ct
|
from . import contracts as ct
|
||||||
from .managed_objs.managed_bl_collection import preview_collection
|
|
||||||
|
|
||||||
log = logger.get(__name__)
|
log = logger.get(__name__)
|
||||||
|
|
||||||
|
|
|
@ -4,7 +4,7 @@ import bpy
|
||||||
|
|
||||||
from .....utils import logger
|
from .....utils import logger
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from ... import managed_objs, sockets
|
from ... import sockets
|
||||||
from .. import base, events
|
from .. import base, events
|
||||||
|
|
||||||
log = logger.get(__name__)
|
log = logger.get(__name__)
|
||||||
|
@ -245,9 +245,9 @@ class ExtractDataNode(base.MaxwellSimNode):
|
||||||
field_data = self._compute_input('Field Data')
|
field_data = self._compute_input('Field Data')
|
||||||
return getattr(field_data, props['field_data__component'])
|
return getattr(field_data, props['field_data__component'])
|
||||||
|
|
||||||
elif self.active_socket_set == 'Flux Data': # noqa: RET505
|
elif self.active_socket_set == 'Flux Data':
|
||||||
flux_data = self._compute_input('Flux Data')
|
flux_data = self._compute_input('Flux Data')
|
||||||
return getattr(flux_data, 'flux')
|
return flux_data.flux
|
||||||
|
|
||||||
msg = f'Tried to get data from unknown output socket in "{self.bl_label}"'
|
msg = f'Tried to get data from unknown output socket in "{self.bl_label}"'
|
||||||
raise RuntimeError(msg)
|
raise RuntimeError(msg)
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
import typing as typ
|
import typing as typ
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import tidy3d as td
|
|
||||||
|
|
||||||
from ...... import info
|
from ...... import info
|
||||||
from ......services import tdcloud
|
from ......services import tdcloud
|
||||||
from ......utils import logger
|
from ......utils import logger
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import typing as typ
|
import typing as typ
|
||||||
|
|
||||||
import sympy as sp
|
import sympy as sp
|
||||||
import sympy.physics.units as spu
|
|
||||||
import tidy3d as td
|
import tidy3d as td
|
||||||
|
|
||||||
from .....assets.import_geonodes import GeoNodes, import_geonodes
|
from .....assets.import_geonodes import GeoNodes, import_geonodes
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
import typing as typ
|
import typing as typ
|
||||||
|
|
||||||
import bpy
|
|
||||||
import sympy as sp
|
import sympy as sp
|
||||||
import sympy.physics.units as spu
|
|
||||||
import tidy3d as td
|
import tidy3d as td
|
||||||
|
|
||||||
from .....assets.import_geonodes import GeoNodes, import_geonodes
|
from .....assets.import_geonodes import GeoNodes, import_geonodes
|
||||||
|
|
|
@ -6,7 +6,6 @@ import sympy as sp
|
||||||
from .....utils import logger
|
from .....utils import logger
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from ... import sockets
|
from ... import sockets
|
||||||
from ...managed_objs.managed_bl_collection import preview_collection
|
|
||||||
from .. import base, events
|
from .. import base, events
|
||||||
|
|
||||||
log = logger.get(__name__)
|
log = logger.get(__name__)
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import typing as typ
|
import typing as typ
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import sympy.physics.units as spu
|
|
||||||
import tidy3d as td
|
import tidy3d as td
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import tidy3d as td
|
import tidy3d as td
|
||||||
import typing_extensions as typx
|
import typing_extensions as typx
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import tidy3d as td
|
import tidy3d as td
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import scipy as sc
|
import scipy as sc
|
||||||
import sympy.physics.units as spu
|
import sympy.physics.units as spu
|
||||||
import tidy3d as td
|
import tidy3d as td
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import tidy3d as td
|
import tidy3d as td
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import typing as typ
|
import typing as typ
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy as sp
|
import sympy as sp
|
||||||
|
|
||||||
from .....utils.pydantic_sympy import SympyExpr
|
from .....utils.pydantic_sympy import SympyExpr
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy as sp
|
import sympy as sp
|
||||||
|
|
||||||
from .....utils.pydantic_sympy import SympyExpr
|
from .....utils.pydantic_sympy import SympyExpr
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from .....utils.pydantic_sympy import SympyExpr
|
from .....utils.pydantic_sympy import SympyExpr
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy.physics.units as spu
|
import sympy.physics.units as spu
|
||||||
|
|
||||||
from .....utils.pydantic_sympy import SympyExpr
|
from .....utils.pydantic_sympy import SympyExpr
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy.physics.units as spu
|
import sympy.physics.units as spu
|
||||||
|
|
||||||
from .....utils.pydantic_sympy import SympyExpr
|
from .....utils.pydantic_sympy import SympyExpr
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import typing as typ
|
import typing as typ
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy as sp
|
import sympy as sp
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy.physics.units as spu
|
import sympy.physics.units as spu
|
||||||
|
|
||||||
from .....utils.pydantic_sympy import SympyExpr
|
from .....utils.pydantic_sympy import SympyExpr
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy as sp
|
import sympy as sp
|
||||||
import sympy.physics.units as spu
|
|
||||||
|
|
||||||
from .....utils import extra_sympy_units as spux
|
from .....utils import extra_sympy_units as spux
|
||||||
from .....utils import logger
|
from .....utils import logger
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy as sp
|
import sympy as sp
|
||||||
import sympy.physics.units as spu
|
import sympy.physics.units as spu
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy.physics.units as spu
|
import sympy.physics.units as spu
|
||||||
|
|
||||||
from .....utils.pydantic_sympy import SympyExpr
|
from .....utils.pydantic_sympy import SympyExpr
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import typing as typ
|
import typing as typ
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy as sp
|
import sympy as sp
|
||||||
import sympy.physics.units as spu
|
import sympy.physics.units as spu
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy as sp
|
import sympy as sp
|
||||||
import sympy.physics.optics.polarization as spo_pol
|
import sympy.physics.optics.polarization as spo_pol
|
||||||
import sympy.physics.units as spu
|
import sympy.physics.units as spu
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy as sp
|
import sympy as sp
|
||||||
import sympy.physics.units as spu
|
import sympy.physics.units as spu
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy.physics.units as spu
|
import sympy.physics.units as spu
|
||||||
|
|
||||||
from .....utils.pydantic_sympy import SympyExpr
|
from .....utils.pydantic_sympy import SympyExpr
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import typing as typ
|
import typing as typ
|
||||||
|
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy.physics.units as spu
|
import sympy.physics.units as spu
|
||||||
|
|
||||||
from .....utils.pydantic_sympy import SympyExpr
|
from .....utils.pydantic_sympy import SympyExpr
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from .....utils.pydantic_sympy import SympyExpr
|
from .....utils.pydantic_sympy import SympyExpr
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy.physics.units as spu
|
import sympy.physics.units as spu
|
||||||
|
|
||||||
from .....utils.pydantic_sympy import SympyExpr
|
from .....utils.pydantic_sympy import SympyExpr
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from .....services import tdcloud
|
from .....services import tdcloud
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
import pydantic as pyd
|
|
||||||
|
|
||||||
from ... import contracts as ct
|
from ... import contracts as ct
|
||||||
from .. import base
|
from .. import base
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy as sp
|
import sympy as sp
|
||||||
|
|
||||||
from .....utils.pydantic_sympy import ConstrSympyExpr
|
from .....utils.pydantic_sympy import ConstrSympyExpr
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy as sp
|
import sympy as sp
|
||||||
|
|
||||||
from .....utils.pydantic_sympy import ConstrSympyExpr
|
from .....utils.pydantic_sympy import ConstrSympyExpr
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import bpy
|
import bpy
|
||||||
import pydantic as pyd
|
|
||||||
import sympy as sp
|
import sympy as sp
|
||||||
|
|
||||||
from .....utils.pydantic_sympy import ConstrSympyExpr
|
from .....utils.pydantic_sympy import ConstrSympyExpr
|
||||||
|
|
|
@ -1,6 +1,4 @@
|
||||||
"""
|
"""Attributes:
|
||||||
|
|
||||||
Attributes:
|
|
||||||
NaiveEncodableType:
|
NaiveEncodableType:
|
||||||
See <https://jcristharif.com/msgspec/supported-types.html> for details.
|
See <https://jcristharif.com/msgspec/supported-types.html> for details.
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -9,7 +9,6 @@ import bpy
|
||||||
PATH_SCRIPT = str(Path(__file__).resolve().parent)
|
PATH_SCRIPT = str(Path(__file__).resolve().parent)
|
||||||
sys.path.insert(0, str(PATH_SCRIPT))
|
sys.path.insert(0, str(PATH_SCRIPT))
|
||||||
import info # noqa: E402
|
import info # noqa: E402
|
||||||
import pack # noqa: E402
|
|
||||||
|
|
||||||
sys.path.remove(str(PATH_SCRIPT))
|
sys.path.remove(str(PATH_SCRIPT))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue