Skip to content

Commit

Permalink
Merge pull request #432 from astropy/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
astrofrog authored Mar 12, 2024
2 parents baf36fc + 61f7318 commit b5b85da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ repos:
exclude: ".*(tests.*)$"

- repo: https://github.com/scientific-python/cookie
rev: 2024.01.24
rev: 2024.03.10
hooks:
- id: sp-repo-review

Expand All @@ -77,7 +77,7 @@ repos:
- tomli

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.3.0"
rev: "v0.3.2"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
Expand Down
6 changes: 2 additions & 4 deletions reproject/interpolation/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,8 @@ def _validate_wcs(wcs_in, wcs_out, shape_in, shape_out):
if wcs_in.wcs.spec >= 0 and wcs_out.wcs.spec >= 0:
if wcs_in.wcs.ctype[wcs_in.wcs.spec] != wcs_out.wcs.ctype[wcs_out.wcs.spec]:
raise ValueError(
"The input ({}) and output ({}) spectral "
"coordinate types are not equivalent.".format(
wcs_in.wcs.ctype[wcs_in.wcs.spec], wcs_out.wcs.ctype[wcs_out.wcs.spec]
)
f"The input ({wcs_in.wcs.ctype[wcs_in.wcs.spec]}) and output ({wcs_out.wcs.ctype[wcs_out.wcs.spec]}) spectral "
"coordinate types are not equivalent."
)
elif wcs_in.wcs.spec >= 0:
raise ValueError("Input WCS has a spectral component but output WCS does not")
Expand Down

0 comments on commit b5b85da

Please sign in to comment.