general fixes
This commit is contained in:
11
flares.py
11
flares.py
@@ -134,6 +134,9 @@ SHORT_CHANNEL: bool
|
||||
|
||||
REMOVE_EVENTS: list
|
||||
|
||||
TIME_WINDOW_START: int
|
||||
TIME_WINDOW_END: int
|
||||
|
||||
VERBOSITY = True
|
||||
|
||||
# FIXME: Shouldn't need each ordering - just order it before checking
|
||||
@@ -182,6 +185,8 @@ REQUIRED_KEYS: dict[str, Any] = {
|
||||
|
||||
"SHORT_CHANNEL": bool,
|
||||
"REMOVE_EVENTS": list,
|
||||
"TIME_WINDOW_START": int,
|
||||
"TIME_WINDOW_END": int
|
||||
# "REJECT_PAIRS": bool,
|
||||
# "FORCE_DROP_ANNOTATIONS": list,
|
||||
# "FILTER_LOW_PASS": float,
|
||||
@@ -3031,7 +3036,11 @@ def process_participant(file_path, progress_callback=None):
|
||||
contrast_dict = {}
|
||||
|
||||
for condition in all_conditions:
|
||||
delay_cols = [col for col in all_delay_cols if col.startswith(f"{condition}_delay_")]
|
||||
delay_cols = [
|
||||
col for col in all_delay_cols
|
||||
if col.startswith(f"{condition}_delay_") and
|
||||
TIME_WINDOW_START <= int(col.split("_delay_")[-1]) <= TIME_WINDOW_END
|
||||
]
|
||||
|
||||
if not delay_cols:
|
||||
continue # skip if no columns found (shouldn't happen?)
|
||||
|
||||
Reference in New Issue
Block a user