Skip to content

Commit

Permalink
Fix float/numpy error.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Dec 16, 2024
1 parent 287c1b7 commit 0187ad2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/lsst/the/monster/measure_colorterms.py
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ def measure_spline_fit(
np.array([cat_stars[cat_info.get_flux_field(band_2)][c26202_cat_index]]),
np.array([cat_stars[cat_info.get_flux_field(band)][c26202_cat_index]]),
)
mag_target_corr0 = (flux_target_corr0*units.nJy).to_value(units.ABmag)
mag_target_corr0 = float((flux_target_corr0*units.nJy).to_value(units.ABmag))

ratio = flux_target_corr0 / c26202_absmags[band_index].to_value(units.nJy)

Expand All @@ -363,7 +363,7 @@ def measure_spline_fit(
np.array([cat_stars[cat_info.get_flux_field(band_2)][c26202_cat_index]]),
np.array([cat_stars[cat_info.get_flux_field(band)][c26202_cat_index]]),
)
mag_target_corr1 = (flux_target_corr1*units.nJy).to_value(units.ABmag)
mag_target_corr1 = float((flux_target_corr1*units.nJy).to_value(units.ABmag))

print(
f"{band} "
Expand Down

0 comments on commit 0187ad2

Please sign in to comment.