diff --git a/python/dune/xt/common/vtk/plot.py b/python/dune/xt/common/vtk/plot.py index 2160683c053c7e080421ec034be84d8ff71c8d57..d25f63ea62482178163aed380ed1ff1708c857a4 100644 --- a/python/dune/xt/common/vtk/plot.py +++ b/python/dune/xt/common/vtk/plot.py @@ -3,7 +3,7 @@ import warnings import IPython from ipywidgets import IntSlider, interact, widgets, Play from k3d.helpers import minmax -from k3d_vtk.reader import read_vtkfile +from .reader import read_vtkfile from k3d.plot import Plot as k3dPlot import k3d from vtk.util import numpy_support @@ -49,7 +49,7 @@ class VTKPlot(k3dPlot): self.idx = 0 if 'transform' in kwargs.keys() and len(vtk_data) > 1: - raise RuntimeError('supplying transforms is currently not supported for teim series VTK Data') + raise RuntimeError('supplying transforms is currently not supported for time series VTK Data') self.vtk_data = np.stack([_transform_to_k3d(v[0], v[1], color_attribute_name) for v in vtk_data]) self.value_minmax = (np.nanmin(self.vtk_data[:, 2]), np.nanmax(self.vtk_data[:, 3])) diff --git a/python/dune/xt/common/vtk/reader.py b/python/dune/xt/common/vtk/reader.py index 8721b9816db94a22b481f166f0868bfa32145192..551e22636d24c5ff3cde1d4bce9ff3f274ac150a 100644 --- a/python/dune/xt/common/vtk/reader.py +++ b/python/dune/xt/common/vtk/reader.py @@ -57,4 +57,4 @@ def read_vtkfile(filename): if vtk_type == 'Collection': path, xml = _get_collection_data(filename) return _read_collection(xml) - return [None, _read_single(filename, vtk_type)] + return [[0., _read_single(filename, vtk_type)],]