Skip to content

Commit

Permalink
Merge branch 'main' into renovate/numpy-2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
paddyroddy authored Dec 21, 2024
2 parents 8b7d50a + 0ce2af1 commit 699ab8d
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
id-token: write
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/python/deployment@6630dca9555ad0bcebc93e0d9177aa416991fc97 # v0
- uses: paddyroddy/.github/actions/python/deployment@cde57fbdb1dcdc4cd2aacb0d34127e1582424621 # v0
with:
pyproject-toml: ./pyproject.toml
python-version: "3.12"
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/python/pdoc@6630dca9555ad0bcebc93e0d9177aa416991fc97 # v0
- uses: paddyroddy/.github/actions/python/pdoc@cde57fbdb1dcdc4cd2aacb0d34127e1582424621 # v0
with:
docs-dependency-section: .[docs]
gh-pages-publish-directory: ./html/sleplet
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/licence.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/licence@6630dca9555ad0bcebc93e0d9177aa416991fc97 # v0
- uses: paddyroddy/.github/actions/licence@cde57fbdb1dcdc4cd2aacb0d34127e1582424621 # v0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
licence-file: ./LICENCE.txt
2 changes: 1 addition & 1 deletion .github/workflows/links.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ jobs:
timeout-minutes: 2
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/links@6630dca9555ad0bcebc93e0d9177aa416991fc97 # v0
- uses: paddyroddy/.github/actions/links@cde57fbdb1dcdc4cd2aacb0d34127e1582424621 # v0
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/linting@6630dca9555ad0bcebc93e0d9177aa416991fc97 # v0
- uses: paddyroddy/.github/actions/linting@cde57fbdb1dcdc4cd2aacb0d34127e1582424621 # v0
with:
pre-commit-config: ./.pre-commit-config.yaml
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- "3.12"
steps:
# yamllint disable-line rule:line-length
- uses: paddyroddy/.github/actions/python/tox@6630dca9555ad0bcebc93e0d9177aa416991fc97 # v0
- uses: paddyroddy/.github/actions/python/tox@cde57fbdb1dcdc4cd2aacb0d34127e1582424621 # v0
with:
cache-path: |-
.tox
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
repos:
- repo: https://github.com/paddyroddy/.github
rev: v0.241.0
rev: v0.254.0
hooks:
- id: general-hooks
- id: python-hooks
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 699ab8d

Please sign in to comment.