Skip to content

Commit

Permalink
Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy committed Dec 3, 2024
1 parent fa02731 commit f953009
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/sleplet/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"noise",
"plot_methods",
"plotting",
"slepian_methods",
"slepian",
"slepian_methods",
"wavelet_methods",
]

Expand Down
6 changes: 4 additions & 2 deletions src/sleplet/_bool_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ def is_limited_lat_lon(
) -> bool:
"""Define a region by angles, just need one to not be the default."""
return (
not is_polar_cap(phi_min, phi_max, theta_min, theta_max)
and phi_min != sleplet._vars.PHI_MIN_DEFAULT
(
not is_polar_cap(phi_min, phi_max, theta_min, theta_max)
and phi_min != sleplet._vars.PHI_MIN_DEFAULT
)
or phi_max != sleplet._vars.PHI_MAX_DEFAULT
or theta_min != sleplet._vars.THETA_MIN_DEFAULT
)
6 changes: 3 additions & 3 deletions src/sleplet/functions/fp.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ def __post_init__(self: typing_extensions.Self) -> None:

def rotate( # noqa: D102
self: typing_extensions.Self,
alpha: float, # noqa: ARG002
beta: float, # noqa: ARG002
alpha: float,
beta: float,
*,
gamma: float = 0, # noqa: ARG002
gamma: float = 0,
) -> npt.NDArray[np.complex128]:
msg = "Slepian rotation is not defined"
raise NotImplementedError(msg)
Expand Down
2 changes: 1 addition & 1 deletion src/sleplet/plotting/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@
from ._create_plot_sphere import PlotSphere

__all__ = [
"PlotSphere",
"PlotMesh",
"PlotSphere",
]

0 comments on commit f953009

Please sign in to comment.