Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
bbean23 committed Apr 26, 2024
1 parent 11e84a3 commit 178f353
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions opencsp/common/lib/render/View3d.py
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,12 @@ def draw_Vxyz(self, V: Vxyz, close=False, style=None, label=None) -> None:

# TODO tjlarki: only implemented for 3d views, should extend
def _draw_xyz_surface_customshape(
self, x_mesh: np.ndarray, y_mesh: np.ndarray, z_mesh: np.ndarray, surface_style: RenderControlSurface = None, **kwargs
self,
x_mesh: np.ndarray,
y_mesh: np.ndarray,
z_mesh: np.ndarray,
surface_style: RenderControlSurface = None,
**kwargs,
):
if surface_style is None:
surface_style = RenderControlSurface()
Expand Down Expand Up @@ -827,7 +832,12 @@ def _draw_xyz_surface_customshape(
axis.set_title(self.parent.title)

def draw_xyz_surface_customshape(
self, x_mesh: np.ndarray, y_mesh: np.ndarray, z_mesh: np.ndarray, surface_style: RenderControlSurface = None, **kwargs
self,
x_mesh: np.ndarray,
y_mesh: np.ndarray,
z_mesh: np.ndarray,
surface_style: RenderControlSurface = None,
**kwargs,
):
draw_callback = lambda: self._draw_xyz_surface_customshape(x_mesh, y_mesh, z_mesh, surface_style, **kwargs)
self.register_event_handler('key_release_event', lambda event: self.on_key_press(event, draw_callback))
Expand Down Expand Up @@ -916,7 +926,16 @@ def draw_xyz_trisurface(

# TODO tjlarki: currently unused
# TODO tjlarki: might want to remove, this is a very slow function
def quiver(self, X: np.ndarray, Y: np.ndarray, Z: np.ndarray, U: np.ndarray, V: np.ndarray, W: np.ndarray, length: float = 0) -> None:
def quiver(
self,
X: np.ndarray,
Y: np.ndarray,
Z: np.ndarray,
U: np.ndarray,
V: np.ndarray,
W: np.ndarray,
length: float = 0,
) -> None:
self.axis.quiver(X, Y, Z, U, V, W, length=0)

# PQ PLOTTING
Expand Down

0 comments on commit 178f353

Please sign in to comment.