From da7743d5c534b0e0fb93637b68c78c8beeac74f2 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 25 Nov 2024 20:58:39 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- feigen/_base.py | 1 + feigen/bspline.py | 12 ++++++------ feigen/comm.py | 1 + feigen/jacobian_determinant.py | 6 +++--- feigen/nurbs_weights.py | 6 +++--- feigen/poisson2d.py | 6 +++--- 6 files changed, 17 insertions(+), 15 deletions(-) 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