diff --git a/python/lsst/the/monster/measure_colorterms.py b/python/lsst/the/monster/measure_colorterms.py index 756cfdb..7c33b31 100644 --- a/python/lsst/the/monster/measure_colorterms.py +++ b/python/lsst/the/monster/measure_colorterms.py @@ -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) @@ -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} "