Skip to content

Commit

Permalink
Fix index error.
Browse files Browse the repository at this point in the history
  • Loading branch information
erykoff committed Dec 16, 2024
1 parent 771eea4 commit 32a9459
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 @@ -679,12 +679,12 @@ def apply_comcam_c26202_calibration(self, stars):
orig_data_mags = np.zeros(len(bands))
final_data_mags = np.zeros(len(bands))
for i, band in enumerate(bands):
orig_data_mags[i] = stars[f"comcam_{band}_flux"][i1].quantity.to_value(units.ABmag)[0]
orig_data_mags[i] = stars[f"comcam_{band}_flux"][[i1]].quantity.to_value(units.ABmag)[0]

ratio = stars[f"comcam_{band}_flux"][i1] / c26202_mags[i].to_value(units.nJy)
stars[f"comcam_{band}_flux"] /= ratio

final_data_mags[i] = stars[f"comcam_{band}_flux"][i1].quantity.to_value(units.ABmag)[0]
final_data_mags[i] = stars[f"comcam_{band}_flux"][[i1]].quantity.to_value(units.ABmag)[0]

print("C2602 (ComCam)")
print("Band CalSpec Original Corrected")
Expand Down

0 comments on commit 32a9459

Please sign in to comment.