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

Issue/278/fast transient module #341

Merged
merged 15 commits into from
Nov 17, 2023
22 changes: 22 additions & 0 deletions fink_science/fast_transient_rate/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
from pyspark.sql.types import DoubleType, BooleanType
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

header missing


rate_module_output_schema = {
# the first 5-sigma detection in the alert history
"jd_first_real_det": DoubleType(),
# The delta-time between the current jd of the alert and the jd_first_real_det,
# if above 30, the jd_first_real_det is no longer reliable.
"jdstarthist_dt": DoubleType(),
# The magnitude rate computed between the last available measurement
# and the current alerts. The mag_rate band are the same of the current alert.
"mag_rate": DoubleType(),
# The magnitude rate error computed using a random sampling in the magnitude sigma of the two alerts.
"sigma_rate": DoubleType(),
# The lowest mag_rate computed from the random sampling
"lower_rate": DoubleType(),
# The highest mag_rate computed from the random sampling
"upper_rate": DoubleType(),
# The delta-time between the last alert and the current alert
"delta_time": DoubleType(),
# if True, the magnitude rate has been computed with an upper limit.
"from_upper": BooleanType(),
}
Loading
Loading