Skip to content

Commit

Permalink
Add default tns column if the xmatch is skipped
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Nov 6, 2024
1 parent e8a04fa commit 63af3d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fink_science/xmatch/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -329,6 +329,7 @@ def xmatch_tns(df, distmaxarcsec=1.5, tns_raw_output=""):
else:
_LOG.warning("TNS_API_MARKER and TNS_API_KEY are not defined as env var in the master.")
_LOG.warning("Skipping crossmatch with TNS.")
df = df.withColumn("tns", F.lit(""))
return df
else:
pdf_tns = pd.read_parquet(os.path.join(tns_raw_output, 'tns_raw.parquet'))
Expand Down

0 comments on commit 63af3d6

Please sign in to comment.