Skip to content

Commit

Permalink
🦺 Inverse null mask
Browse files Browse the repository at this point in the history
  • Loading branch information
i-be-snek committed Nov 26, 2024
1 parent bd7a50b commit 868ce8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Database/fill_data_gap.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
drop_l3 = True
for impact in l3.keys():
null_mask_l3 = l3[impact][[dg_utils.num_min, dg_utils.num_max]].isnull().all(axis=1)
if not l3[impact][(null_mask_l3) & (l3[impact][dg_utils.event_id] == e_id)].empty:
if not l3[impact][(~null_mask_l3) & (l3[impact][dg_utils.event_id] == e_id)].empty:
drop_l3 = False
logger.warning(
f"L3 contains impacts not propagated to L1!\n{l3[impact][l3[impact][dg_utils.event_id] == e_id]}"
Expand Down

0 comments on commit 868ce8e

Please sign in to comment.