Skip to content

Commit 82aebd9

Browse files
TYP: Add missing return types; include (beta) version of observer_los_view getter
1 parent 7eb6b75 commit 82aebd9

5 files changed

Lines changed: 111 additions & 90 deletions

File tree

docs/source/conf.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22

33
import os
44
import sys
5-
from dataclasses import dataclass, field, asdict
65
from datetime import datetime
76
from pathlib import Path
7+
88
import pyvista as pv
99
from pyvista.plotting.utilities.sphinx_gallery import DynamicScraper
1010

11-
# from pyvista.plotting.utilities.sphinx_gallery import DynamicScraper
12-
1311
try:
1412
# First try to run sphinx_build against installed dist
1513
# This is primarily included for nox-based doc builds
@@ -115,7 +113,7 @@
115113
'_add_stack_set', 'render_scene', '_add_grid_set',
116114
'TWOPI', 'XYZ_PERMUTATIONS', 'RTP_PERMUTATIONS',
117115
r'parsers\._', r'mesh3d\._update', r'plot3d\.Plot3d\._',
118-
'_abc_impl'
116+
'_abc_impl', r'utils\.geometry\._norm'
119117
]
120118

121119
node_tree = build_node_tree(root_package,

pyvisual/core/mesh3d.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@
4545
import warnings
4646
from abc import ABC, abstractmethod
4747
from collections.abc import Iterable
48-
from functools import singledispatchmethod, cached_property, reduce, wraps
48+
from functools import singledispatchmethod, reduce, wraps
4949
from itertools import pairwise
50-
from numbers import Real, Number
50+
from numbers import Number
5151
from pathlib import Path
5252
from typing import Optional, ClassVar, Callable
5353

@@ -57,9 +57,9 @@
5757
from psi_io import read_hdf_by_index
5858
from scipy.interpolate import RegularGridInterpolator
5959

60+
from pyvisual.core._typing import SurfaceReconstructionType, MeshFramesType
6061
from pyvisual.core.constants import FRAME_SCALES, FRAME_ALIASES
6162
from pyvisual.core.parsers import parse_grid_mesh, parse_data, generate_transforms, fetch_canonical_frame, _normalize_frame, apply_mesh_transform
62-
from pyvisual.core._typing import SurfaceReconstructionType, MeshFramesType
6363
from pyvisual.utils.geometry import moveaxis_to_start, ij_meshgrid, spherical_to_cartesian, cartesian_to_spherical
6464
from pyvisual.utils.helpers import atleast_1dnull
6565

@@ -853,7 +853,7 @@ def _binary_op(self, other, ufunc, swap: bool = False):
853853
:attr:`data` is used; otherwise it is used directly (scalar or array
854854
broadcast).
855855
ufunc : numpy.ufunc
856-
Binary ufunc to apply (e.g. :func:`numpy.add`).
856+
Binary ufunc to apply (e.g. :obj:`numpy.add`).
857857
swap : bool, optional
858858
When ``True``, swap the operand order to support reflected operations
859859
(e.g. ``other - self``). Default is ``False``.

0 commit comments

Comments
 (0)