diff --git a/frb/surveys/decals.py b/frb/surveys/decals.py index 67a94c52..bf58507b 100644 --- a/frb/surveys/decals.py +++ b/frb/surveys/decals.py @@ -75,7 +75,7 @@ def get_catalog(self, query=None, query_fields=None, print_query=False,exclude_s if query is None: query = super(DECaL_Survey, self)._gen_cat_query(query_fields=query_fields, qtype='main') # include photo_z - query = query.replace("SELECT", "SELECT z_phot_median, z_spec, survey, z_phot_l68, z_phot_u68, z_phot_l95, z_phot_u95") + query = query.replace("SELECT", "SELECT z_phot_median, z_spec, survey, z_phot_l68, z_phot_u68, z_phot_l95, z_phot_u95,") query = query.replace("ls_id", "t.ls_id") query = query.replace("brickid", "t.brickid") query = query.replace(f"FROM {self.database}\n", f"FROM {self.database} as t LEFT JOIN {self.database.split('.')[0]}.photo_z AS p ON t.ls_id=p.ls_id\n")