Skip to content

Commit

Permalink
PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPeloton committed Oct 24, 2024
1 parent cd69ca5 commit 2c66a70
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions bin/hostless_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,16 +117,17 @@ def main():
F.col("cutoutTemplate.stampData").alias("cutoutTemplate"),
]

cond_science_low = df["kstest_static"][0] >= 0.
cond_science_low = df["kstest_static"][0] >= 0.0
cond_science_high = df["kstest_static"][0] <= 0.5
cond_template_low = df["kstest_static"][1] >= 0.
cond_template_low = df["kstest_static"][1] >= 0.0
cond_template_high = df["kstest_static"][1] <= 0.85

pdf = df\
.filter(cond_science_low & cond_science_high)\
.filter(cond_template_low & cond_template_high)\
.select(cols_)\
pdf = (
df.filter(cond_science_low & cond_science_high)
.filter(cond_template_low & cond_template_high)
.select(cols_)
.toPandas()
)

# load hostless IDs
past_ids = read_past_ids(args.hostless_folder)
Expand Down

0 comments on commit 2c66a70

Please sign in to comment.