Commit ac3eaa46 authored by Pierre Augier's avatar Pierre Augier
Browse files

Buggy load_fields.py

parent 4104caab4e50
from pathlib import Path
import matplotlib.pyplot as plt
import fluidsim as fls
paths = sorted((Path(fls.FLUIDSIM_PATH) / "examples").glob("dedalus_*"))
path = paths[-1]
sim = fls.load_state_phys_file(path)
sim.output.phys_fields.plot("dz_b")
plt.show()
from pathlib import Path
import matplotlib.pyplot as plt
import fluidsim as fls
paths = sorted((Path(fls.FLUIDSIM_PATH) / "examples").glob("dedalus_*"))
......@@ -7,4 +9,6 @@ path = paths[-1]
sim = fls.load_sim_for_plot(path)
sim.output.phys_fields.plot("b")
\ No newline at end of file
sim.output.phys_fields.plot("b")
plt.show()
......@@ -9,8 +9,6 @@ Provides:
"""
# import numpy as np
from dedalus.extras import flow_tools
from fluidsim.base.time_stepping.base import TimeSteppingBase0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment