Skip to content

Commit

Permalink
Use f-strings in forward notebook (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
santisoler authored Jan 25, 2024
1 parent 5feedab commit eec3bfa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions notebooks/01-forward-dc-resisitivity-2d.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -524,10 +524,10 @@
}
],
"source": [
"print(\"# of cells: {}\".format(mesh.n_cells)) # Number of cells\n",
"print(\"# of x-faces: {}\".format(mesh.n_faces_x)) # Number of x-faces\n",
"print(\"Origin: {}\".format(mesh.origin)) # bottom-southwest corner\n",
"print(\"Max cell volume: {}\".format(mesh.cell_volumes.max())) # Largest cell size\n",
"print(f\"# of cells: {mesh.n_cells}\") # Number of cells\n",
"print(f\"# of x-faces: {mesh.n_faces_x}\") # Number of x-faces\n",
"print(f\"Origin: {mesh.origin}\") # bottom-southwest corner\n",
"print(f\"Max cell volume: {mesh.cell_volumes.max()}\") # Largest cell size\n",
"print(mesh.cell_centers[0:5, :]) # Cell center locations"
]
},
Expand Down

0 comments on commit eec3bfa

Please sign in to comment.