Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 22, 2025
1 parent 9450184 commit 2bf8e9a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions romancal/regtest/util.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""Test utilities"""
from astropy.stats import mad_std

import numpy as np
from astropy.stats import mad_std


def comp_wcs_grids_arcs(wcs_a, wcs_b, npix=4088, interval=10):
Expand All @@ -26,7 +27,7 @@ def comp_wcs_grids_arcs(wcs_a, wcs_b, npix=4088, interval=10):
ra_a, dec_a = wcs_a(xx, yy, with_bounding_box=False)
ra_b, dec_b = wcs_b(xx, yy, with_bounding_box=False)

Check warning on line 28 in romancal/regtest/util.py

View check run for this annotation

Codecov / codecov/patch

romancal/regtest/util.py#L26-L28

Added lines #L26 - L28 were not covered by tests

ra_mad = mad_std(ra_a - ra_b, ignore_nan=True) * 60. * 60. * 1000.
dec_mad = mad_std(dec_a - dec_b, ignore_nan=True) * 60. * 60. * 1000.
ra_mad = mad_std(ra_a - ra_b, ignore_nan=True) * 60.0 * 60.0 * 1000.0
dec_mad = mad_std(dec_a - dec_b, ignore_nan=True) * 60.0 * 60.0 * 1000.0

Check warning on line 31 in romancal/regtest/util.py

View check run for this annotation

Codecov / codecov/patch

romancal/regtest/util.py#L30-L31

Added lines #L30 - L31 were not covered by tests

return ra_mad, dec_mad

Check warning on line 33 in romancal/regtest/util.py

View check run for this annotation

Codecov / codecov/patch

romancal/regtest/util.py#L33

Added line #L33 was not covered by tests

0 comments on commit 2bf8e9a

Please sign in to comment.