diff --git a/yt/frontends/enzo/answer_testing_support.py b/yt/frontends/enzo/answer_testing_support.py index f57caf46a1f..87def1b9981 100644 --- a/yt/frontends/enzo/answer_testing_support.py +++ b/yt/frontends/enzo/answer_testing_support.py @@ -104,7 +104,7 @@ def __call__(self): field = ad[k].d for xmin, xmax in zip(self.left_edges, self.right_edges): mask = (position >= xmin) * (position <= xmax) - exact_field = np.interp(position[mask], exact["pos"], exact[k]) + exact_field = np.interp(position[mask].ndview, exact["pos"], exact[k]) myname = f"ShockTubeTest_{k}" # yield test vs analytical solution yield AssertWrapper(