Skip to content

Commit

Permalink
update pixi.lock
Browse files Browse the repository at this point in the history
  • Loading branch information
blooop committed Nov 24, 2024
1 parent 1fcb77a commit fa37339
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions bencher/example/example_rerun.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@


class SweepRerun(bch.ParametrizedSweep):
theta = bch.FloatSweep(
default=1, bounds=[1, 4], doc="Input angle", units="rad", samples=30
)
theta = bch.FloatSweep(default=1, bounds=[1, 4], doc="Input angle", units="rad", samples=30)

out_pane = bch.ResultContainer()

Expand All @@ -19,9 +17,7 @@ def __call__(self, **kwargs):
return super().__call__(**kwargs)


def example_rerun(
run_cfg: bch.BenchRunCfg = None, report: bch.BenchReport = None
) -> bch.Bench:
def example_rerun(run_cfg: bch.BenchRunCfg = None, report: bch.BenchReport = None) -> bch.Bench:
"""This example shows how to sample a 1 dimensional float variable and plot the result of passing that parameter sweep to the benchmarking function"""

bench = SweepRerun().to_bench(run_cfg, report)
Expand Down

0 comments on commit fa37339

Please sign in to comment.