Skip to content

Commit

Permalink
Fix ruff errors in notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
lang-m committed Jun 9, 2024
1 parent a00aa3b commit 9d9ea52
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/tutorial-standard-problem3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@
" p2 = (cubesize, cubesize, cubesize) # Maximum sample coordinate.\n",
" cell = (cellsize, cellsize, cellsize) # Discretisation.\n",
" mesh = df.Mesh(\n",
" p1=(0, 0, 0),\n",
" p2=(cubesize, cubesize, cubesize),\n",
" cell=(cellsize, cellsize, cellsize),\n",
" p1=p1,\n",
" p2=p2,\n",
" cell=cell,\n",
" ) # Create a mesh object.\n",
"\n",
" system = mm.System(name=\"stdprob3\")\n",
Expand Down Expand Up @@ -274,6 +274,8 @@
}
],
"source": [
"import matplotlib.pyplot as plt\n",
"\n",
"L_array = np.linspace(8, 9, 5) # values of L for which the system is relaxed.\n",
"\n",
"vortex_energies = []\n",
Expand All @@ -287,8 +289,6 @@
" flower_energies.append(flower.table.data.tail(1)[\"E\"][0])\n",
"\n",
"# Plot the energy dependences.\n",
"import matplotlib.pyplot as plt\n",
"\n",
"plt.plot(L_array, vortex_energies, \"o-\", label=\"vortex\")\n",
"plt.plot(L_array, flower_energies, \"o-\", label=\"flower\")\n",
"plt.xlabel(\"L (lex)\")\n",
Expand Down

0 comments on commit 9d9ea52

Please sign in to comment.