diff --git a/feigen/_base.py b/feigen/_base.py index 58a2649..cfa76f6 100644 --- a/feigen/_base.py +++ b/feigen/_base.py @@ -1,6 +1,7 @@ """ Base type of feigen """ + from feigen import log diff --git a/feigen/bspline.py b/feigen/bspline.py index d1cf309..17f292b 100644 --- a/feigen/bspline.py +++ b/feigen/bspline.py @@ -302,9 +302,9 @@ def __init__(self, uri, degree=None, ncoeffs=None): # noqa PLR0915 # plotter initialization constants self._config["dim"] = 2 # 2D - self._config[ - "n_subplots" - ] = 3 # geometry, boundary condition, server response + self._config["n_subplots"] = ( + 3 # geometry, boundary condition, server response + ) self._config["geometry_plot"] = 0 self._config["bc_plot"] = 1 self._config["server_plot"] = 2 @@ -667,9 +667,9 @@ def _iganet_sync(self, evt): # noqa ARG002 eval_points = vedo.Points(np.vstack(geo_eval).T, c="white") eval_point_ids = eval_points.labels("id", on="points", font="VTK") self._state["server_plot_actors"]["evaluated_points"] = eval_points - self._state["server_plot_actors"][ - "evaluated_point_ids" - ] = eval_point_ids.c("grey") + self._state["server_plot_actors"]["evaluated_point_ids"] = ( + eval_point_ids.c("grey") + ) # for some reason add won't work here self.show( diff --git a/feigen/comm.py b/feigen/comm.py index 6191465..ee69d9f 100644 --- a/feigen/comm.py +++ b/feigen/comm.py @@ -1,6 +1,7 @@ """ Communication helpers. """ + import uuid from websockets.exceptions import ConnectionClosed diff --git a/feigen/jacobian_determinant.py b/feigen/jacobian_determinant.py index f10964f..ccfd5cd 100644 --- a/feigen/jacobian_determinant.py +++ b/feigen/jacobian_determinant.py @@ -92,9 +92,9 @@ def __init__(self, spline=None): # noqa PLR0915 # plotter initialization constants self._c["dim"] = 2 # 2D - self._c[ - "n_subplots" - ] = 2 # geometry, boundary condition, server response + self._c["n_subplots"] = ( + 2 # geometry, boundary condition, server response + ) self._c["geometry_plot"] = 0 self._c["server_plot"] = 1 diff --git a/feigen/nurbs_weights.py b/feigen/nurbs_weights.py index 1295d4a..91bea40 100644 --- a/feigen/nurbs_weights.py +++ b/feigen/nurbs_weights.py @@ -109,9 +109,9 @@ def __init__( # plotter initialization constants self._c["dim"] = 2 # 2D - self._c[ - "n_subplots" - ] = 2 # geometry, boundary condition, server response + self._c["n_subplots"] = ( + 2 # geometry, boundary condition, server response + ) self._c["geometry_plot"] = 0 self._c["server_plot"] = 1 diff --git a/feigen/poisson2d.py b/feigen/poisson2d.py index 12cad5c..ad199ed 100644 --- a/feigen/poisson2d.py +++ b/feigen/poisson2d.py @@ -318,9 +318,9 @@ def __init__(self, spline=None): # noqa PLR0915 # plotter initialization constants self._c["dim"] = 2 # 2D - self._c[ - "n_subplots" - ] = 3 # geometry, boundary condition, server response + self._c["n_subplots"] = ( + 3 # geometry, boundary condition, server response + ) self._c["geometry_plot"] = 0 self._c["bc_plot"] = 1 self._c["server_plot"] = 2