Skip to content

Commit e590c86

Browse files
committed
benchmark updates
1 parent d96a78e commit e590c86

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ jobs:
1818
with:
1919
python-version: ${{ matrix.python-version }}
2020

21-
- uses: actions/setup-python@v5
22-
with:
23-
python-version: "3.12"
24-
2521
- name: build
2622
run: uv build
2723

benchmarks/analyse_results.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
import polars as pl
88

99
HERE = Path(__file__).parent
10+
CSV_FILE_METHIONINE = HERE / "methionine.csv"
1011
CSV_FILE_ROSENBROCK = HERE / "rosenbrock.csv"
11-
CSV_FILE_LINEAR = HERE / "linear_pathway.csv"
12+
CSV_FILE_LINEAR = HERE / "linear.csv"
1213
CSV_FILE_TRAJECTORY = HERE / "trajectory.csv"
1314

1415

@@ -169,12 +170,15 @@ def trajectory_fig(result: pl.DataFrame):
169170

170171
def main():
171172
matplotlib.rcParams["savefig.dpi"] = 300
172-
df_rb = pl.read_csv(CSV_FILE_ROSENBROCK)
173-
df_linear = pl.read_csv(CSV_FILE_LINEAR)
173+
df_methionine = pl.read_csv(CSV_FILE_METHIONINE).with_columns(
174+
model=pl.lit("Methionine"), dim=0
175+
)
176+
df_rb = pl.read_csv(CSV_FILE_ROSENBROCK).with_columns(model=pl.lit("Rosenbrock"))
177+
df_linear = pl.read_csv(CSV_FILE_LINEAR).with_columns(
178+
model=pl.lit("Small enzyme network"), dim=0
179+
)
174180
df_trajectory = pl.read_csv(CSV_FILE_TRAJECTORY)
175-
df_rb = df_rb.with_columns(model=pl.lit("Rosenbrock"))
176-
df_linear = df_linear.with_columns(model=pl.lit("Small enzyme network"), dim=0)
177-
df_performance = pl.concat([df_rb, df_linear], how="align")
181+
df_performance = pl.concat([df_methionine, df_rb, df_linear], how="align")
178182

179183
f, _ = performance_fig(df_performance)
180184
f.savefig(HERE / "performance.png", bbox_inches="tight")

benchmarks/readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
1. Install [uv](https://docs.astral.sh/uv/)
44
2. Install grapevine
5+
6+
57
3. Run the benchmarks:
68

79
```sh

0 commit comments

Comments
 (0)