Skip to content

Commit 5835a49

Browse files
STY: Run linter checks and add noqa ignore where applicable
1 parent de77034 commit 5835a49

36 files changed

Lines changed: 317 additions & 231 deletions

examples/01_getting_started/p01_simple_scene.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# noqa: INP001
12
"""
23
Instantiating a Plot3d Object
34
=============================
@@ -12,11 +13,11 @@
1213

1314
# %%
1415
# .. note::
15-
# As stated throughout the **pyvisual** documentation site, it is *highly* recommended to explore the
16-
# `PyVista <https://docs.pyvista.org/>`_ documentation to learn about the extensive capabilities
17-
# provided by the PyVista and VTK libraries. **pyvisual** is but a thin wrapper around a small
18-
# subset of these capabilities, and thus, learning about the underlying libraries will allow you to
19-
# make the most of **pyvisual**.
16+
# As stated throughout the **pyvisual** documentation site, it is *highly* recommended to
17+
# explore the `PyVista <https://docs.pyvista.org/>`_ documentation to learn about the
18+
# extensive capabilities provided by the PyVista and VTK libraries. **pyvisual** is but a
19+
# thin wrapper around a small subset of these capabilities, and thus, learning about the
20+
# underlying libraries will allow you to make the most of **pyvisual**.
2021

2122
# %%
2223
# The Plot3d class inherits from :class:`~pyvista.Plotter` and, therefore, can be instantiated
@@ -42,9 +43,9 @@
4243
plotter.show()
4344

4445
# %%
45-
# By capturing the returned result of the :meth:`~pyvisual.core.plot3d.Plot3d.add_sun` method, we can
46-
# manipulate the sun actor after it has been added to the scene. For example, we can remove it
47-
# from the scene and then add it back again.
46+
# By capturing the returned result of the :meth:`~pyvisual.core.plot3d.Plot3d.add_sun` method,
47+
# we can manipulate the sun actor after it has been added to the scene. For example, we can
48+
# remove it from the scene and then add it back again.
4849

4950
# sphinx_gallery_start_ignore
5051
# NOTE: The following code block can be removed when run outside the sphinx gallery pipeline.

examples/01_getting_started/p02_longlat_lines.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# noqa: INP001
12
"""
23
Longitudinal and Latitudinal Lines
34
==================================

examples/01_getting_started/p03_loading_data.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# noqa: INP001
12
r"""
23
Loading and Plotting MHD Data
34
==============================

examples/02_stack_mesh_mixin/p01_points.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# noqa: INP001
12
"""
23
Plotting Points and Splines
34
============================

examples/02_stack_mesh_mixin/p02_surface.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# noqa: INP001
12
"""
23
Reconstructing Surfaces
34
=======================

examples/02_stack_mesh_mixin/p03_fieldlines.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# noqa: INP001
12
r"""
23
Plotting Magnetic Fieldlines
34
=============================

examples/03_grid_mesh_mixin/p01_1d_slices.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# noqa: INP001
12
r"""
23
1-D Line Slices
34
===============

examples/03_grid_mesh_mixin/p02_2d_slices.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# noqa: INP001
12
r"""
23
2-D Surface Slices
34
==================

examples/03_grid_mesh_mixin/p03_contour.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# noqa: INP001
12
"""
23
Isosurface Contours
34
===================
@@ -73,8 +74,8 @@
7374
# steady-state Thermodynamic MAS coronal model, we can load in the data
7475
# using :func:`~psi_io.psi_io.read_hdf_data`.
7576

76-
from psi_data import fetch_mas_data
77-
from psi_io import read_hdf_data
77+
from psi_data import fetch_mas_data # noqa: E402
78+
from psi_io import read_hdf_data # noqa: E402
7879

7980
br_file = fetch_mas_data(domains="cor", variables="br").cor_br
8081
br, r, t, p = read_hdf_data(br_file)

examples/04_observer_mixin/p01_saving_views.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# noqa: INP001
12
r"""
23
Saving and Restoring Camera Views
34
==================================
@@ -51,11 +52,9 @@
5152

5253
saved_position = plotter.observer_position
5354
saved_orientation = plotter.observer_orientation
54-
print(
55-
f"Saved position : r={saved_position.r:.2f}, "
56-
f"t={saved_position.t:.3f}, p={saved_position.p:.3f}"
57-
)
58-
print(f"Saved orientation : p_angle={saved_orientation.p_angle:.2f} deg")
55+
print(f"Saved position : r={saved_position.r:.2f}, " # noqa: T201
56+
f"t={saved_position.t:.3f}, p={saved_position.p:.3f}")
57+
print(f"Saved orientation : p_angle={saved_orientation.p_angle:.2f} deg") # noqa: T201
5958

6059
# sphinx_gallery_start_ignore
6160
# The following block re-instantiates the plotter to avoid the sphinx-gallery

0 commit comments

Comments
 (0)