ns3d plot broken
Created originally on Bitbucket by avmo (Ashwin Vishnu)
Spatial means plot broken:
>>> dset = sim.output.spatial_means.load_dataset()
>>> dset
<xarray.Dataset>
Dimensions: (t: 91)
Coordinates:
* t (t) float64 0.0 0.2182 0.4312 0.64 ... 19.09 19.29 19.49 19.69
Data variables:
E (t) float64 0.125 0.1249 0.1248 0.1247 ... 0.0187 0.01852 0.01834
PK1 (t) float64 6.932e-310 6.956e-316 0.0 ... 6.932e-310 6.932e-310
PK2 (t) float64 6.932e-310 6.932e-310 2.931e-13 ... 0.0 3.636e-321
PK_tot (t) float64 6.932e-310 6.775e-316 0.0 ... 3.999e+252 1.983e+214
epsK (t) float64 0.0004687 0.0004707 0.0004772 ... 0.0008769 0.0008618
epsK_hypo (t) float64 0.0 0.0 0.0 0.0 0.0 0.0 ... 0.0 0.0 0.0 0.0 0.0 0.0
epsK_tot (t) float64 0.0004687 0.0004707 0.0004772 ... 0.0008769 0.0008618
Attributes:
>>> sim.output.spatial_means.plot()
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-23-8b879f00c5f0> in <module>()
----> 1 sim.output.spatial_means.plot()
/scratch/avmo/src/gfdyn/fluidsim/fluidsim/solvers/ns3d/output/spatial_means.py in plot(self)
185 t = dict_results["t"]
186 E = dict_results["E"]
--> 187 Ex = dict_results["Ex"]
188 Ey = dict_results["Ey"]
189 Ez = dict_results["Ez"]
KeyError: 'Ex'