Skip to content

Commit

Permalink
ci: fix installation, use git
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-eschle committed Apr 11, 2024
1 parent f8f0cdc commit 26f717c
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
push:

jobs:

notebooks:
runs-on: ubuntu-latest
timeout-minutes: 150
Expand All @@ -18,7 +17,7 @@ jobs:
fail-fast: False
matrix:
use-graph: [ 0, 1 ]
python-version: [ "3.8", "3.11" ]
python-version: [ "3.9", "3.12" ]
name: Run notebooks, Python ${{ matrix.python-version }}, compiled = ${{ matrix.use-graph }}
steps:
- uses: SimenB/github-actions-cpu-cores@v2
Expand All @@ -35,8 +34,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pytest-xdist nbval
pip install git+https://github.com/zfit/zfit
pip install -r requirements.txt
pip install git+https://github.com/zfit/zfit
- name: Run notebooks
run: |
ZFIT_DO_JIT=${{ matrix.use-graph }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"metadata": {},
"outputs": [],
"source": [
"zfit.run.set_mode(graph=False)"
"zfit.run.set_graph_mode(False)"
]
},
{
Expand Down Expand Up @@ -397,7 +397,7 @@
"outputs": [],
"source": [
"%%timeit -n1 -r1\n",
"zfit.run.set_mode(graph=False) # running in eager mode\n",
"zfit.run.set_graph_mode(False) # running in eager mode\n",
"for i in range(100):\n",
" for _ in range(n_evals):\n",
" graph_func2(i)"
Expand Down
2 changes: 1 addition & 1 deletion _website/tutorials/introduction/Introduction_long.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@
"\n",
" nbins = 50\n",
"\n",
" lower, upper = data.data_range.limit1d\n",
" lower, upper = data.v1.limits\n",
" x = znp.linspace(lower, upper, num=1000) # np.linspace also works\n",
" y = model.pdf(x) * size_normal / nbins * data.data_range.area()\n",
" y *= scale\n",
Expand Down
4 changes: 2 additions & 2 deletions components/50 - Custom code and run mode.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@
"metadata": {},
"outputs": [],
"source": [
"zfit.run.set_mode(graph=False)"
"zfit.run.set_graph_mode(False)"
]
},
{
Expand Down Expand Up @@ -397,7 +397,7 @@
"outputs": [],
"source": [
"%%timeit -n1 -r1\n",
"zfit.run.set_mode(graph=False) # running in eager mode\n",
"zfit.run.set_graph_mode(False) # running in eager mode\n",
"for i in range(100):\n",
" for _ in range(n_evals):\n",
" graph_func2(i)"
Expand Down
2 changes: 1 addition & 1 deletion introduction/Introduction_long.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -779,7 +779,7 @@
"\n",
" nbins = 50\n",
"\n",
" lower, upper = data.data_range.limit1d\n",
" lower, upper = data.v1.limits\n",
" x = znp.linspace(lower, upper, num=1000) # np.linspace also works\n",
" y = model.pdf(x) * size_normal / nbins * data.data_range.area()\n",
" y *= scale\n",
Expand Down

0 comments on commit 26f717c

Please sign in to comment.