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 Apr 8, 2024
1 parent 70364d8 commit c1f10f6
Show file tree
Hide file tree
Showing 18 changed files with 8,503 additions and 8,501 deletions.
8 changes: 5 additions & 3 deletions echofilter/inference.py
Original file line number Diff line number Diff line change
Expand Up @@ -703,9 +703,11 @@ def run_inference(
print(
"Echoview application would{} be opened {}.".format(
"" if do_open else " not",
"to convert EV files to CSV"
if do_open
else "(no EV files to process)",
(
"to convert EV files to CSV"
if do_open
else "(no EV files to process)"
),
)
)
do_open = False
Expand Down
2 changes: 1 addition & 1 deletion echofilter/nn/wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def __init__(
mapping_extra = {}
for key in mapping:
for alias_map in self.aliases:
for (alias_a, alias_b) in [alias_map, alias_map[::-1]]:
for alias_a, alias_b in [alias_map, alias_map[::-1]]:
if "_" + alias_a not in key:
continue
alt_key = key.replace("_" + alias_a, "_" + alias_b)
Expand Down
Loading

0 comments on commit c1f10f6

Please sign in to comment.