Skip to content

Commit d6aa14e

Browse files
committed
Fix variable name in solution JSON file check and update plot save path
1 parent 1c55db3 commit d6aa14e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

examples-proposed/024-aggregated-compute-ensemble/input_dir/instance_base_notebook.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"# arrays, `x` and `u`, which we will plot.\n",
4444
"solution_json_file = list(Path(\"..\").rglob(\"*solution.json\"))\n",
4545
"\n",
46-
"if len(solution_json) != 1:\n",
46+
"if len(solution_json_file) != 1:\n",
4747
" raise RuntimeError(\n",
4848
" f\"Expected exactly one solution JSON file, found {len(solution_json_file)}\"\n",
4949
" )\n",
@@ -62,7 +62,7 @@
6262
"plt.ylabel(\"Temperature (u)\")\n",
6363
"plt.title(\"Solution of 1D Heat Equation\")\n",
6464
"plt.grid(True)\n",
65-
"plt.savefig(f\"{instance}_solution.png\")"
65+
"plt.savefig(f\"solution.png\")"
6666
],
6767
"id": "b1a40da330ba6b3e",
6868
"outputs": [],

0 commit comments

Comments
 (0)