...
 
Commits (6)
......@@ -580,10 +580,13 @@ void vtkOggTheoraWriter::Write()
//---------------------------------------------------------------------------
void vtkOggTheoraWriter::End()
{
this->Internals->End();
if (this->Internals)
{
this->Internals->End();
delete this->Internals;
this->Internals = nullptr;
delete this->Internals;
this->Internals = nullptr;
}
}
//---------------------------------------------------------------------------
......
......@@ -135,7 +135,7 @@ def numpy_to_vtk(num_array, deep=0, array_type=None):
assert z.flags.contiguous, 'Only contiguous arrays are supported.'
assert len(shape) < 3, \
"Only arrays of dimensionality 2 or lower are allowed!"
assert not numpy.issubdtype(z.dtype, numpy.complexfloating), \
assert not numpy.issubdtype(z.dtype, numpy.dtype(complex).type), \
"Complex numpy arrays cannot be converted to vtk arrays."\
"Use real() or imag() to get a component of the array before"\
" passing it to vtk."
......