Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions eegnb/analysis/streaming_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,13 +170,13 @@ def check_report(eeg: EEG, n_times: int=60, pause_time=5, thres_std_low=None, th
indicators = "\n".join(
[
f" {k:>4}: {CHECKMARK if v >= thres_std_low and v <= thres_std_high else CROSS} (std: {round(v, 1):>5})"
for k, v in std_series.iteritems()
for k, v in std_series.items()
]
)
print("\nSignal quality:")
print(indicators)

bad_channels = [k for k, v in std_series.iteritems() if v < thres_std_low or v > thres_std_high ]
bad_channels = [k for k, v in std_series.items() if v < thres_std_low or v > thres_std_high ]
if bad_channels:
print(f"Bad channels: {', '.join(bad_channels)}")
good_count=0 # reset good checks count if there are any bad chans
Expand Down
4 changes: 2 additions & 2 deletions eegnb/analysis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,13 +507,13 @@ def check_report(eeg: EEG, n_times: int=60, pause_time=5, thres_std_low=None, th
indicators = "\n".join(
[
f" {k:>4}: {CHECKMARK if v >= thres_std_low and v <= thres_std_high else CROSS} (std: {round(v, 1):>5})"
for k, v in std_series.iteritems()
for k, v in std_series.items()
]
)
print("\nSignal quality:")
print(indicators)

bad_channels = [k for k, v in std_series.iteritems() if v < thres_std_low or v > thres_std_high ]
bad_channels = [k for k, v in std_series.items() if v < thres_std_low or v > thres_std_high ]
if bad_channels:
print(f"Bad channels: {', '.join(bad_channels)}")
good_count=0 # reset good checks count if there are any bad chans
Expand Down
Loading