Commit 7d23fd42 authored by Pierre Cazenave's avatar Pierre Cazenave

Fix usage of load_data.

parent 1ae4c876
Pipeline #780 canceled with stage
......@@ -1039,7 +1039,7 @@ class CrossPlotter(Plotter):
self.axes.quiver(plot_x, plot_y, cross_u.T, cross_v.T*w_factor)
def _var_prep(self, var, timestep):
self.ds.load_data([var], start=timestep, end=timestep+1)
self.ds.load_data([var], dims={'time': [timestep]})
var_sel = np.squeeze(getattr(, var))[..., self.sel_points]
this_step_wet_points = np.asarray(self.wet_points_data[timestep,:], dtype=bool)
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