Skip to content

Commit

Permalink
Fix broken docs
Browse files Browse the repository at this point in the history
  • Loading branch information
finsberg committed Feb 9, 2025
1 parent 2884466 commit 90b3ed2
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions docs/demo_dolfinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
# First we try to generate the mean shape from the UK Biobank atlas

folder = Path("data")
subdir = "mean"
subprocess.run(["ukb-atlas", str(folder), "--mesh", "--subdir", subdir])
subdir = folder / "mean"
subprocess.run(["ukb-atlas", str(subdir), "--mesh"])

comm = MPI.COMM_WORLD
msh_file = folder / subdir / "ED.msh"
msh_file = subdir / "ED.msh"
gmsh.initialize()
gmsh.model.add("Mesh from file")
gmsh.merge(str(msh_file))
Expand Down Expand Up @@ -51,13 +51,11 @@


# Now lets us perturb the mean shape with the second mode
subdir = "mode_1"
subprocess.run(
["ukb-atlas", str(folder), "--mesh", "--mode", "1", "--std", "1.5", "--subdir", subdir]
)
subdir = folder / "mode_1"
subprocess.run(["ukb-atlas", str(subdir), "--mesh", "--mode", "1", "--std", "1.5"])

comm = MPI.COMM_WORLD
msh_file = folder / subdir / "ED.msh"
msh_file = subdir / "ED.msh"
gmsh.initialize()
gmsh.model.add("Mesh from file")
gmsh.merge(str(msh_file))
Expand Down

0 comments on commit 90b3ed2

Please sign in to comment.