Skip to content

Commit

Permalink
add spark variable
Browse files Browse the repository at this point in the history
  • Loading branch information
FusRoman committed Feb 9, 2024
1 parent 778995f commit 5a24c4a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fink_mm/ztf_join_gcn.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,14 @@ def ztf_join_gcn(
"""
logger = init_logging()

if mm_mode == DataMode.OFFLINE:
job_name = "offline"
elif mm_mode == DataMode.STREAMING:
job_name = "online"
spark = init_sparksession(
"science2mm_{}_{}{}{}".format(job_name, night[0:4], night[4:6], night[6:8])
)

ztf_dataframe, gcn_dataframe = load_dataframe(
spark,
ztf_datapath_prefix,
Expand Down

0 comments on commit 5a24c4a

Please sign in to comment.