From b8dbb15acfd293824a93d187419abd799bbe8829 Mon Sep 17 00:00:00 2001 From: Eli Rykoff Date: Mon, 16 Dec 2024 10:50:06 -0800 Subject: [PATCH] Improve c26202 absolute calibration message formatting. --- python/lsst/the/monster/measure_colorterms.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/python/lsst/the/monster/measure_colorterms.py b/python/lsst/the/monster/measure_colorterms.py index 3951964..db3b95e 100644 --- a/python/lsst/the/monster/measure_colorterms.py +++ b/python/lsst/the/monster/measure_colorterms.py @@ -187,8 +187,8 @@ def measure_spline_fit( c26202_absmags = self.compute_target_c26202_magnitudes() c26202_cat_index = self.get_c26202_index(cat_stars) - print("C2602 (ComCam)") - print("Band CalSpec Original Corrected") + c26202_message = "C2602 (ComCam)\n" + c26202_message += "Band CalSpec Original Corrected\n" yaml_files = [] @@ -368,12 +368,12 @@ def measure_spline_fit( ) mag_target_corr1 = float((flux_target_corr1*units.nJy).to_value(units.ABmag)) - print( - f"{band} " - f"{c26202_absmags[band_index].value:0.5} " - f"{mag_target_corr0:0.5} " - f"{mag_target_corr1:0.5}" - ) + c26202_message += f"{band} " + c26202_message += f"{c26202_absmags[band_index].value:0.5} " + c26202_message += f"{mag_target_corr0:0.5} " + c26202_message += f"{mag_target_corr1:0.5}\n" + + print(c26202_message) yaml_file = f"{cat_info.name}_to_{target_info.name}_band_{band}.yaml" colorterm.save(yaml_file, overwrite=overwrite)