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 Mar 14, 2023
1 parent caf3c65 commit d9c50b2
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 10 deletions.
1 change: 0 additions & 1 deletion doc/source/_ext/autodocclass.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def add_directive_header(self, sig: str) -> None:
self.add_line(" ", self.get_sourcename())

def add_content(self, more_content: Optional[StringList]) -> None:

super().add_content(more_content)

source_name = self.get_sourcename()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,6 @@ def _get_windows_id(
session_id: Optional[str] = "",
windows_id: Optional[List[str]] = [],
) -> List[str]:

return [
window_id
for window_id in [
Expand Down
1 change: 0 additions & 1 deletion src/ansys/fluent/visualization/post_data_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,6 @@ def _fetch_pathlines_data(self, obj, *args, **kwargs):
return pathlines_data

def _fetch_vector_data(self, obj, *args, **kwargs):

if not obj.surfaces_list():
raise RuntimeError("Vector definition is incomplete.")

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@ def _scalar_bar_default_properties(self) -> dict:
)

def _display_vector(self, obj, plotter: Union[BackgroundPlotter, pv.Plotter]):

vector_field_data = FieldDataExtractor(obj).fetch_data()
field_info = obj._api_helper.field_info()
vectors_of = obj.vectors_of()
Expand Down Expand Up @@ -341,7 +340,6 @@ def _display_surface(self, obj, plotter: Union[BackgroundPlotter, pv.Plotter]):
surface_api.delete_surface_on_server()

def _display_mesh(self, obj, plotter: Union[BackgroundPlotter, pv.Plotter]):

surfaces_data = FieldDataExtractor(obj).fetch_data()
for surface_id, mesh_data in surfaces_data.items():
if "vertices" not in mesh_data or "faces" not in mesh_data:
Expand All @@ -362,7 +360,6 @@ def _display_mesh(self, obj, plotter: Union[BackgroundPlotter, pv.Plotter]):

def _get_refresh_for_plotter(self, window: "PyVistaWindow"):
def refresh():

with PyVistaWindowsManager._condition:
plotter = window.plotter
if window.close:
Expand Down
4 changes: 0 additions & 4 deletions tests/test_post.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,6 @@ def test_graphics_operations():


def test_contour_object():

pyvista_graphics = Graphics(session=None)
contour1 = pyvista_graphics.Contours["contour-1"]
field_info = contour1._api_helper.field_info()
Expand Down Expand Up @@ -346,7 +345,6 @@ def test_contour_object():


def test_vector_object():

pyvista_graphics = Graphics(session=None)
vector1 = pyvista_graphics.Vectors["contour-1"]
field_info = vector1._api_helper.field_info()
Expand Down Expand Up @@ -385,7 +383,6 @@ def test_vector_object():


def test_surface_object():

pyvista_graphics = Graphics(session=None)
surf1 = pyvista_graphics.Surfaces["surf-1"]
field_info = surf1._api_helper.field_info()
Expand Down Expand Up @@ -459,7 +456,6 @@ def test_create_plot_objects():


def test_xyplot_object():

matplotlib_plots = Plots(session=None, post_api_helper=MockAPIHelper)
p1 = matplotlib_plots.XYPlots["p-1"]
field_info = p1._api_helper.field_info()
Expand Down

0 comments on commit d9c50b2

Please sign in to comment.