Skip to content

Commit

Permalink
fix: test sth
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsbck committed Nov 21, 2024
1 parent c82862d commit 297d91c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/update_regression_baseline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ jobs:
- name: Update baseline
if: github.event.pull_request.base.ref == 'main'
run: |
git config --global user.name 'GitHub Action'
git config --global user.email 'action@github.com'
git config --global user.name '${{ github.event.pull_request.user.login }}'
git config --global user.email '${{ github.event.pull_request.user.login }}@users.noreply.github.com'
NEW_BASELINE=1 pytest -m regression
- name: Commit and push
Expand Down
16 changes: 8 additions & 8 deletions tests/test_regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def append_to_json(fpath, test_name, input_kwargs, runtimes):


class compare_to_baseline:
def __init__(self, baseline_iters=3, test_iters=1):
def __init__(self, baseline_iters=1, test_iters=1):
self.baseline_iters = baseline_iters
self.test_iters = test_iters

Expand Down Expand Up @@ -186,13 +186,13 @@ def build_net(num_cells, artificial=True, connect=True, connection_prob=0.0):
(
# Test a single SWC cell with both solvers.
pytest.param(1, False, False, 0.0, "jaxley.stone"),
pytest.param(1, False, False, 0.0, "jax.sparse"),
# Test a network of SWC cells with both solvers.
pytest.param(10, False, True, 0.1, "jaxley.stone"),
pytest.param(10, False, True, 0.1, "jax.sparse"),
# Test a larger network of smaller neurons with both solvers.
pytest.param(1000, True, True, 0.001, "jaxley.stone"),
pytest.param(1000, True, True, 0.001, "jax.sparse"),
# pytest.param(1, False, False, 0.0, "jax.sparse"),
# # Test a network of SWC cells with both solvers.
# pytest.param(10, False, True, 0.1, "jaxley.stone"),
# pytest.param(10, False, True, 0.1, "jax.sparse"),
# # Test a larger network of smaller neurons with both solvers.
# pytest.param(1000, True, True, 0.001, "jaxley.stone"),
# pytest.param(1000, True, True, 0.001, "jax.sparse"),
),
)
@compare_to_baseline(baseline_iters=3)
Expand Down

0 comments on commit 297d91c

Please sign in to comment.