Skip to content

Commit da99934

Browse files
DOC: Update scipy intersphinx ref; point to correct psi logo in README; update typing import sort
1 parent 5835a49 commit da99934

6 files changed

Lines changed: 25 additions & 30 deletions

File tree

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.. |psi| image:: https://predsci.com/doc/assets/static/psi_logo.png
1+
.. |psi| image:: https://predsci.com/doc/psi_logo.png
22
:target: https://predsci.com
33
:alt: Predictive Science Inc.
44
:width: 20px

docs/source/conf.py

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -268,42 +268,34 @@ def _inject_mixin_members(pkgtree: dict, class_path: list, mixins: list) -> None
268268
intersphinx_mapping = {
269269
"python": (
270270
"https://docs.python.org/3/",
271-
# (INV / "python-objects.inv").as_posix(),
272271
None
273272
),
274273
"pyvista": (
275274
"https://docs.pyvista.org/",
276-
# (INV / "python-objects.inv").as_posix(),
277275
None
278276
),
279277
"numpy": (
280278
"https://numpy.org/doc/stable/",
281-
# (INV / "numpy-objects.inv").as_posix(),
282279
None
283280
),
284281
"scipy": (
285-
"https://docs.scipy.org/doc/scipy/reference/",
286-
# (INV / "scipy-objects.inv").as_posix(),
282+
"https://docs.scipy.org/doc/scipy/",
287283
None
288284
),
289285
"matplotlib": (
290286
"https://matplotlib.org/stable/",
291-
# (INV / "matplotlib-objects.inv").as_posix(),
292287
None
293288
),
294289
"h5py": (
295290
"https://docs.h5py.org/en/stable/",
296-
# (INV / "h5py-objects.inv").as_posix(),
297291
None
298292
),
299293
"sunpy": (
300294
"https://docs.sunpy.org/en/stable/",
301-
# (INV / "sunpy-objects.inv").as_posix(),
302295
None
303296
),
304297
"astropy": (
305298
"https://docs.astropy.org/en/stable/",
306-
# (INV / "astropy-objects.inv").as_posix(),
307299
None
308300
),
309301
"mapflpy": (

examples/99_advanced_plots/p07_faux_volume_render.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# noqa: INP001
22
"""
3-
Faux Volume Rendering.
3+
Faux Volume Rendering
44
=====================
55
66
This example demonstrates a technique for simulating volumetric rendering of

examples/99_advanced_plots/p09_integrating_mhdweb_p1.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@
179179
f"{BASE_URL}/mas-run-db/" + "/".join(cor_files_params.values()),
180180
headers=AUTH,
181181
stream=True,
182-
timeout=(3, 10),
182+
timeout=(3, 60),
183183
)
184184
cor_files_response.raise_for_status()
185185

@@ -194,7 +194,7 @@
194194
f"{BASE_URL}/mas-run-db/" + "/".join(hel_files_params.values()),
195195
headers=AUTH,
196196
stream=True,
197-
timeout=(3, 10),
197+
timeout=(3, 60),
198198
)
199199
hel_files_response.raise_for_status()
200200

@@ -232,7 +232,7 @@
232232
f"{BASE_URL}/spacecraft-mapping/{cor_id}/{sc_id}",
233233
headers=AUTH,
234234
stream=True,
235-
timeout=(3, 10)
235+
timeout=(3, 30)
236236
)
237237
response.raise_for_status()
238238

pyvisual/core/_typing.py

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,18 @@
2828
Literal,
2929
NamedTuple,
3030
TypeAlias,
31-
Union,
3231
)
3332

34-
from pyvista import VectorLike
33+
from pyvista import (
34+
DataSet,
35+
MultiBlock,
36+
PartitionedDataSet,
37+
VectorLike,
38+
)
3539

36-
PlottableType: TypeAlias = Union[
37-
VectorLike[float], "DataSet", "MultiBlock", "PartitionedDataSet", str, Path
38-
]
40+
PlottableType: TypeAlias = (
41+
VectorLike[float] | DataSet | MultiBlock | PartitionedDataSet | str | Path
42+
)
3943

4044
PathType = str | Path | PathLike[str]
4145
"""Type alias for filesystem path arguments.
@@ -93,8 +97,8 @@
9397
class SolarCoordinate(NamedTuple):
9498
r"""Named tuple representing a heliographic Carrington coordinate.
9599
96-
Fields
97-
------
100+
Attributes
101+
----------
98102
radius : float
99103
Heliocentric distance in solar radii :math:`R_\odot`.
100104
b_angle : float
@@ -111,8 +115,8 @@ class SolarCoordinate(NamedTuple):
111115
class SphericalCoordinate(NamedTuple):
112116
r"""Named tuple representing a PSI spherical coordinate :math:`(r, \theta, \phi)`.
113117
114-
Fields
115-
------
118+
Attributes
119+
----------
116120
r : float
117121
Radial distance in solar radii :math:`R_\odot`.
118122
t : float
@@ -129,8 +133,8 @@ class SphericalCoordinate(NamedTuple):
129133
class CartesianCoordinate(NamedTuple):
130134
r"""Named tuple representing a Cartesian coordinate :math:`(x, y, z)`.
131135
132-
Fields
133-
------
136+
Attributes
137+
----------
134138
x : float
135139
Cartesian x-coordinate in solar radii :math:`R_\odot`.
136140
y : float
@@ -147,8 +151,8 @@ class CartesianCoordinate(NamedTuple):
147151
class ObserverView(NamedTuple):
148152
"""Named tuple representing line-of-sight field-of-view extents in degrees.
149153
150-
Fields
151-
------
154+
Attributes
155+
----------
152156
x0 : float
153157
Left edge of the horizontal (elongation) FOV extent in degrees.
154158
x1 : float
@@ -168,8 +172,8 @@ class ObserverView(NamedTuple):
168172
class ObserverOrientation(NamedTuple):
169173
"""Named tuple representing the observer's position angle.
170174
171-
Fields
172-
------
175+
Attributes
176+
----------
173177
p_angle : float
174178
Roll of the camera about the line-of-sight axis, measured from solar north,
175179
in degrees. A value of ``0`` means solar north points straight up in the image

pyvisual/core/mas3d.py

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)