Skip to content

Commit

Permalink
Set RA/Dec fallback to default fallback name
Browse files Browse the repository at this point in the history
  • Loading branch information
duytnguyendtn committed Jan 25, 2023
1 parent 74c7655 commit b0b68c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jdaviz/configs/mosviz/plugins/parsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.")

Expand Down

0 comments on commit b0b68c6

Please sign in to comment.