TreeMesh.write_vtk

Hi all,

I have tried using the TreeMesh.write_vtk method to output the final models of my 3d mag inversion to vtk format, but an error tells me that write_vtk is not associated with my mesh. Is this no longer a supported function? Or am I missing something fundamental?

This is what I’ve imported from discretize:

from discretize import TensorMesh, TreeMesh
from discretize.utils import active_from_xyz

My mesh is defined as tree_mesh and tree_mesh.write_vtk is how I try to call the function.

Thanks!

1 Like

Can you post the error message here?