Skip to content

Commit

Permalink
misc: Re-run notebooks with docstring outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoeLeibowitz committed Feb 23, 2024
1 parent e967489 commit 6ad769a
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 40 deletions.
59 changes: 29 additions & 30 deletions examples/userapi/01_dsl.ipynb

Large diffs are not rendered by default.

19 changes: 9 additions & 10 deletions examples/userapi/05_conditional_dimension.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -166,19 +166,19 @@
" ----------\n",
" name : str\n",
" Name of the dimension.\n",
" parent : Dimension, optional\n",
" parent : Dimension\n",
" The parent Dimension.\n",
" factor : int, optional\n",
" factor : int, optional, default=None\n",
" The number of iterations between two executions of the if-branch. If None\n",
" (default), ``condition`` must be provided.\n",
" condition : expr-like, optional\n",
" condition : expr-like, optional, default=None\n",
" An arbitrary SymPy expression, typically involving the ``parent``\n",
" Dimension. When it evaluates to True, the if-branch is executed. If None\n",
" (default), ``factor`` must be provided.\n",
" indirect : bool, optional\n",
" indirect : bool, optional, default=False\n",
" If True, use `self`, rather than the parent Dimension, to\n",
" index into arrays. A typical use case is when arrays are accessed\n",
" indirectly via the ``condition`` expression. Defaults to False.\n",
" indirectly via the ``condition`` expression.\n",
"\n",
" Examples\n",
" --------\n",
Expand Down Expand Up @@ -565,9 +565,9 @@
"START(section0)\n",
"for (int i = i_m; i <= i_M; i += 1)\n",
"{\n",
" if ((i)%(4) == 0)\n",
" if ((i)%(cif) == 0)\n",
" {\n",
" f[i / 4] = g[i];\n",
" f[i / cif] = g[i];\n",
" }\n",
"}\n",
"STOP(section0,timers)\n",
Expand Down Expand Up @@ -684,8 +684,7 @@
" {\n",
" if (f[x][y] != 0)\n",
" {\n",
" int r0 = 1;\n",
" g[1] += r0;\n",
" g[1] += 1;\n",
" }\n",
" }\n",
"}\n",
Expand Down Expand Up @@ -832,7 +831,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.7"
"version": "3.11.2"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 6ad769a

Please sign in to comment.