-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
FusRoman
committed
Sep 20, 2023
1 parent
8e4bf00
commit b2b89c1
Showing
3 changed files
with
148 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,22 @@ | ||
from pyspark.sql.types import * | ||
from pyspark.sql.types import DoubleType, BooleanType | ||
|
||
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 | ||
# 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 | ||
# 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() | ||
} | ||
"from_upper": BooleanType(), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters