Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update arguments for rfscore_sigmoid_elasticc #732

Merged
merged 1 commit into from
Aug 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions fink_broker/science.py
Original file line number Diff line number Diff line change
Expand Up @@ -435,14 +435,12 @@ def apply_science_modules_elasticc(df: DataFrame) -> DataFrame:
args = ['cmidPointTai', 'cfilterName', 'cpsFlux', 'cpsFluxErr']

# fake cdsxmatch and nobs
args += [F.col('cdsxmatch'), F.lit(20)]
args += [F.col('diaObject.ra'), F.col('diaObject.decl')]
args += [F.col('diaObject.hostgal_ra'), F.col('diaObject.hostgal_dec')]
args += [F.col('diaObject.hostgal_snsep')]
args += [F.col('diaObject.hostgal_zphot')]
args += [F.col('diaObject.hostgal_zphot_err'), F.col('diaObject.mwebv')]
args += [F.col('diaObject.hostgal_zphot_err')]

# maxduration
args += [F.lit(40)]
df = df.withColumn('rf_snia_vs_nonia', rfscore_sigmoid_elasticc(*args))

# Apply level one processor: superNNova
Expand Down
Loading