Skip to content

Commit

Permalink
update test arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
gibsongreen committed Dec 9, 2024
1 parent 2b895bf commit 12c90bd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions jdaviz/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test_spec_sb_flux_conversion():
targ_units=(u.ph / (u.s * u.cm**2 * u.Hz * solid_angle)), # noqa
eqv=eqv,
spec_unit=spec_unit,
image_data=None
indirect_needs_spec_axis=None
)
assert_allclose(returned_values, target_values)
assert (return_units == expected_units)
Expand All @@ -71,7 +71,7 @@ def test_spec_sb_flux_conversion():
values=values,
orig_units=(u.ph / (u.Angstrom * u.s * u.cm**2 * u.sr)), # noqa
targ_units=(u.MJy), eqv=eqv,
spec_unit=spec_unit, image_data=None
spec_unit=spec_unit, indirect_needs_spec_axis=None # noqa
)
assert_allclose(returned_values, target_values)
assert (return_units == expected_units)
Expand All @@ -83,7 +83,7 @@ def test_spec_sb_flux_conversion():
returned_values, return_units, unit_flag = _indirect_conversion(
values=values, orig_units=(u.Jy/u.sr),
targ_units=(u.MJy), eqv=eqv,
spec_unit=spec_unit, image_data=None
spec_unit=spec_unit, indirect_needs_spec_axis=None # noqa
)
assert_allclose(returned_values, target_values)
assert (return_units == expected_units)
Expand All @@ -95,7 +95,7 @@ def test_spec_sb_flux_conversion():
returned_values, return_units = _indirect_conversion(
values=1, orig_units=(u.MJy/u.sr),
targ_units=(u.erg / (u.s * u.cm**2 * u.Hz * u.sr)),
eqv=eqv, spec_unit=None, image_data=True
eqv=eqv, spec_unit=None, indirect_needs_spec_axis=True
)
assert_allclose(returned_values, target_value)
assert return_units == expected_units
Expand All @@ -105,7 +105,7 @@ def test_spec_sb_flux_conversion():
expected_units = (u.MJy / u.sr)
returned_values, return_units = _indirect_conversion(
values=10, orig_units=(u.MJy/u.sr), targ_units=(u.Jy/u.sr),
eqv=eqv, spec_unit=None, image_data=True
eqv=eqv, spec_unit=None, indirect_needs_spec_axis=True
)
assert_allclose(returned_values, target_value)
assert return_units == expected_units
Expand Down

0 comments on commit 12c90bd

Please sign in to comment.