Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 30, 2023
1 parent 0ed4c8f commit 931ee21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions eye2bids/edf2bids.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,8 @@ def edf2bids(
if not events_asc_file.exists():
e2b_log.error(
"The following .edf input file could not be converted to .asc:"
f"{input_file}")
f"{input_file}"
)

events = _load_asc_file(events_asc_file)
df_ms = _load_asc_file_as_df(events_asc_file)
Expand Down Expand Up @@ -426,7 +427,8 @@ def edf2bids(
if not samples_asc_file.exists():
e2b_log.error(
"The following .edf input file could not be converted to .asc:"
f"{input_file}")
f"{input_file}"
)
eyetrack_tsv = _samples_to_data_frame(samples_asc_file)
# strip blankspcace and convert empty cells to nan
eyetrack_tsv = eyetrack_tsv.applymap(lambda x: x.strip() if isinstance(x, str) else x)
Expand Down

0 comments on commit 931ee21

Please sign in to comment.