Skip to content

Commit

Permalink
fixing test
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveDoyle2 committed Nov 4, 2024
1 parent 81ac906 commit 23536da
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,8 @@ def plot_plane(self,
plane_color = settings.shear_moment_torque_color
plane_opacity = settings.shear_moment_torque_opacity
point_size = settings.shear_moment_torque_point_size
line_width = settings.shear_moment_torque_line_width
line_width = int(settings.shear_moment_torque_line_width)
assert isinstance(line_width, int), line_width

# the plane actor defines the plane of the output results,
# not the plane of the march direction
Expand All @@ -604,11 +605,12 @@ def _create_vector_points(self, xyz1: np.ndarray,
color: ColorFloat,
opacity: float,
point_size: float,
line_width: float) -> None:
line_width: int) -> None:
"""
Creates additional actors to represent the location of
the cutting planes
"""
assert isinstance(line_width, int), line_width
gui = self.gui
nodes = xyz1[np.newaxis, :] + iaxis_march[np.newaxis, :] * stations[:, np.newaxis]
irange = np.arange(len(stations)-1, dtype='int32')
Expand Down
1 change: 1 addition & 0 deletions pyNastran/gui/qt_files/vtk_actor_actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def set_line_grid(self, name: str,
visible_in_geometry_properties: bool=True,
) -> Optional[vtkUnstructuredGrid]:
"""Makes a line grid"""
assert isinstance(line_width, int), line_width
etype = 3 # vtkLine().GetCellType()
grid = self.create_grid_from_nodes_elements_etype(
name, nodes, elements, etype, color,
Expand Down

0 comments on commit 23536da

Please sign in to comment.