refactor: Ran lint fix

main
Sofus Albert Høgsbro Rose 2024-04-15 17:49:53 +02:00
parent b5a4b6b0a1
commit 269af4ba32
Signed by: so-rose
GPG Key ID: AD901CB0F3701434
61 changed files with 7 additions and 70 deletions

View File

@ -1,4 +1,3 @@
import enum
import pydantic as pyd
import typing_extensions as pytypes_ext

View File

@ -1,4 +1,3 @@
import typing as typ
from .base import ManagedObj

View File

@ -1,4 +1,3 @@
import functools
import bpy

View File

@ -1,5 +1,4 @@
import io
import time
import typing as typ
import bpy

View File

@ -6,8 +6,8 @@ import numpy as np
from ....utils import logger
from .. import contracts as ct
from .managed_bl_collection import managed_collection, preview_collection
from . import base
from .managed_bl_collection import managed_collection, preview_collection
log = logger.get(__name__)

View File

@ -5,7 +5,6 @@ import bpy
from ...utils import logger
from . import contracts as ct
from .managed_objs.managed_bl_collection import preview_collection
log = logger.get(__name__)

View File

@ -4,7 +4,7 @@ import bpy
from .....utils import logger
from ... import contracts as ct
from ... import managed_objs, sockets
from ... import sockets
from .. import base, events
log = logger.get(__name__)
@ -245,9 +245,9 @@ class ExtractDataNode(base.MaxwellSimNode):
field_data = self._compute_input('Field Data')
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')
return getattr(flux_data, 'flux')
return flux_data.flux
msg = f'Tried to get data from unknown output socket in "{self.bl_label}"'
raise RuntimeError(msg)

View File

@ -1,8 +1,6 @@
import typing as typ
from pathlib import Path
import tidy3d as td
from ...... import info
from ......services import tdcloud
from ......utils import logger

View File

@ -1,7 +1,6 @@
import typing as typ
import sympy as sp
import sympy.physics.units as spu
import tidy3d as td
from .....assets.import_geonodes import GeoNodes, import_geonodes

View File

@ -1,8 +1,6 @@
import typing as typ
import bpy
import sympy as sp
import sympy.physics.units as spu
import tidy3d as td
from .....assets.import_geonodes import GeoNodes, import_geonodes

View File

@ -6,7 +6,6 @@ import sympy as sp
from .....utils import logger
from ... import contracts as ct
from ... import sockets
from ...managed_objs.managed_bl_collection import preview_collection
from .. import base, events
log = logger.get(__name__)

View File

@ -1,7 +1,6 @@
import typing as typ
import bpy
import sympy.physics.units as spu
import tidy3d as td
from ... import contracts as ct

View File

@ -1,4 +1,3 @@
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,7 +1,6 @@
from pathlib import Path
import bpy
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import tidy3d as td
import typing_extensions as typx

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import tidy3d as td
from ... import contracts as ct

View File

@ -1,4 +1,3 @@
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,4 +1,3 @@
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import scipy as sc
import sympy.physics.units as spu
import tidy3d as td

View File

@ -1,4 +1,3 @@
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,4 +1,3 @@
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,4 +1,3 @@
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import tidy3d as td
from ... import contracts as ct

View File

@ -1,4 +1,3 @@
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,4 +1,3 @@
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,4 +1,3 @@
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,4 +1,3 @@
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,7 +1,6 @@
import typing as typ
import bpy
import pydantic as pyd
import sympy as sp
from .....utils.pydantic_sympy import SympyExpr

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import sympy as sp
from .....utils.pydantic_sympy import SympyExpr

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
from .....utils.pydantic_sympy import SympyExpr
from ... import contracts as ct

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import sympy.physics.units as spu
from .....utils.pydantic_sympy import SympyExpr

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import sympy.physics.units as spu
from .....utils.pydantic_sympy import SympyExpr

View File

@ -1,7 +1,6 @@
import typing as typ
import bpy
import pydantic as pyd
import sympy as sp
from ... import contracts as ct

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import sympy.physics.units as spu
from .....utils.pydantic_sympy import SympyExpr

View File

@ -1,7 +1,5 @@
import bpy
import pydantic as pyd
import sympy as sp
import sympy.physics.units as spu
from .....utils import extra_sympy_units as spux
from .....utils import logger

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import sympy as sp
import sympy.physics.units as spu

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import sympy.physics.units as spu
from .....utils.pydantic_sympy import SympyExpr

View File

@ -1,7 +1,6 @@
import typing as typ
import bpy
import pydantic as pyd
import sympy as sp
import sympy.physics.units as spu

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import sympy as sp
import sympy.physics.optics.polarization as spo_pol
import sympy.physics.units as spu

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import sympy as sp
import sympy.physics.units as spu

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import sympy.physics.units as spu
from .....utils.pydantic_sympy import SympyExpr

View File

@ -1,7 +1,6 @@
import typing as typ
import bpy
import pydantic as pyd
import sympy.physics.units as spu
from .....utils.pydantic_sympy import SympyExpr

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
from .....utils.pydantic_sympy import SympyExpr
from ... import contracts as ct

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import sympy.physics.units as spu
from .....utils.pydantic_sympy import SympyExpr

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
from .....services import tdcloud
from ... import contracts as ct

View File

@ -1,4 +1,3 @@
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,4 +1,3 @@
import pydantic as pyd
from ... import contracts as ct
from .. import base

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import sympy as sp
from .....utils.pydantic_sympy import ConstrSympyExpr

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import sympy as sp
from .....utils.pydantic_sympy import ConstrSympyExpr

View File

@ -1,5 +1,4 @@
import bpy
import pydantic as pyd
import sympy as sp
from .....utils.pydantic_sympy import ConstrSympyExpr

View File

@ -1,8 +1,6 @@
"""
Attributes:
NaiveEncodableType:
See <https://jcristharif.com/msgspec/supported-types.html> for details.
"""Attributes:
NaiveEncodableType:
See <https://jcristharif.com/msgspec/supported-types.html> for details.
"""
import dataclasses

View File

@ -9,7 +9,6 @@ import bpy
PATH_SCRIPT = str(Path(__file__).resolve().parent)
sys.path.insert(0, str(PATH_SCRIPT))
import info # noqa: E402
import pack # noqa: E402
sys.path.remove(str(PATH_SCRIPT))