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
  • Loading branch information
pre-commit-ci[bot] committed Oct 1, 2024
1 parent bd3e14e commit 40064fd
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions benchmarks/lb_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@
#
##############################################################################


def _set_output(key: str, value: str):
print(f"::set-output name={key}::{value}") # noqa: E231
print(f"::set-output name={key}::{value}") # noqa: E231


def run(pipelines):
paradigm = P300(resample=128)
Expand Down Expand Up @@ -86,5 +88,7 @@ def run(pipelines):
score_trun = int(score * 100)
better_pr_score = pr_score_trun >= score_trun
success = success and better_pr_score
print(f"{key}: {pr_score_trun} (PR) >= {score_trun} (main): {better_pr_score}")
print(
f"{key}: {pr_score_trun} (PR) >= {score_trun} (main): {better_pr_score}"
)
_set_output("success", "1" if success else "0")
2 changes: 1 addition & 1 deletion benchmarks/light_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
##############################################################################
# Compute score and compare with PR branch
# ------------------------------------------
#
#
##############################################################################

run(pipelines)
2 changes: 1 addition & 1 deletion benchmarks/light_benchmark_nch_min_hull.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
##############################################################################
# Compute score and compare with PR branch
# ------------------------------------------
#
#
##############################################################################

run(pipelines)
2 changes: 1 addition & 1 deletion benchmarks/light_benchmark_nch_qaoacv.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
##############################################################################
# Compute score and compare with PR branch
# ------------------------------------------
#
#
##############################################################################

run(pipelines)

0 comments on commit 40064fd

Please sign in to comment.