Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jun 17, 2024
1 parent 6086fc5 commit 73f127a
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
1 change: 1 addition & 0 deletions feigen/_base.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Base type of feigen
"""

from feigen import log


Expand Down
12 changes: 6 additions & 6 deletions feigen/bspline.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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(
Expand Down
1 change: 1 addition & 0 deletions feigen/comm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Communication helpers.
"""

import uuid

from websockets.exceptions import ConnectionClosed
Expand Down
6 changes: 3 additions & 3 deletions feigen/jacobian_determinant.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions feigen/nurbs_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions feigen/poisson2d.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 73f127a

Please sign in to comment.