From b0b68c63077d855daef3123f7cc18dce0e9a250d Mon Sep 17 00:00:00 2001 From: Duy Nguyen Date: Fri, 6 Jan 2023 16:25:14 -0500 Subject: [PATCH] Set RA/Dec fallback to default fallback name --- jdaviz/configs/mosviz/plugins/parsers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jdaviz/configs/mosviz/plugins/parsers.py b/jdaviz/configs/mosviz/plugins/parsers.py index 2d09a4d328..a04ffd90a9 100644 --- a/jdaviz/configs/mosviz/plugins/parsers.py +++ b/jdaviz/configs/mosviz/plugins/parsers.py @@ -492,8 +492,8 @@ def mos_meta_parser(app, data_obj=None, ids=None): # source name and coordinates are taken from image headers, if present if "Images" in current_columns: - ra = query_metadata_by_component(app, "OBJ_RA", "Images", float("nan")) - dec = query_metadata_by_component(app, "OBJ_DEC", "Images", float("nan")) + ra = query_metadata_by_component(app, "OBJ_RA", "Images", FALLBACK_NAME) + dec = query_metadata_by_component(app, "OBJ_DEC", "Images", FALLBACK_NAME) _add_to_table(app, ra, "R.A.") _add_to_table(app, dec, "Dec.")