Skip to content

Commit

Permalink
style: pre-commit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
pre-commit-ci[bot] committed Jul 17, 2023
1 parent 9f2fdb3 commit c5eb8db
Show file tree
Hide file tree
Showing 30 changed files with 5,263 additions and 5,239 deletions.
2 changes: 1 addition & 1 deletion docs/source/examples/notebooks/batch_study.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@
"batch_study.solve(initial_soc=1)\n",
"\n",
"labels = [f\"Inner SEI open-circuit potential [V]: {inner_sei_oc_v}\" for inner_sei_oc_v in inner_sei_oc_v_values]\n",
"batch_study.plot(labels=labels)\n"
"batch_study.plot(labels=labels)"
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/source/examples/notebooks/callbacks.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
],
"source": [
"callback = pybamm.callbacks.LoggingCallback(\"output.log\")\n",
"sim.solve(callbacks=callback);\n",
"sim.solve(callbacks=callback)\n",
"\n",
"# Read the file that has been written, which was saved to callback.logfile\n",
"with open(callback.logfile, \"r\") as f:\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@
"# plot\n",
"r = mesh[\"negative particle\"].nodes # radial position\n",
"\n",
"\n",
"def plot(t):\n",
" fig, (ax1, ax2) = plt.subplots(1, 2, figsize=(13, 4))\n",
" \n",
Expand All @@ -373,6 +374,7 @@
" plt.tight_layout()\n",
" plt.show()\n",
" \n",
"\n",
"import ipywidgets as widgets\n",
"widgets.interact(plot, t=widgets.FloatSlider(min=0,max=3600,step=1,value=0));\n",
" "
Expand Down
Loading

0 comments on commit c5eb8db

Please sign in to comment.