From 377cd2ff6e017cb4951cddc72103bb088d81ffe0 Mon Sep 17 00:00:00 2001 From: Eli Rykoff Date: Mon, 6 Jan 2025 10:36:58 -0800 Subject: [PATCH] Raise on illegal ComCam band. --- python/lsst/the/monster/measure_colorterms.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/lsst/the/monster/measure_colorterms.py b/python/lsst/the/monster/measure_colorterms.py index 2c71386..2813869 100644 --- a/python/lsst/the/monster/measure_colorterms.py +++ b/python/lsst/the/monster/measure_colorterms.py @@ -636,8 +636,8 @@ def n_nodes(self, band=None): return 7 elif band in ["u"]: return 5 - - return 10 + else: + raise ValueError("Unknown ComCam band sent to n_nodes()") def get_calspec_star_position(self): # docstring inherited.