- project_to_vtk(project, filename='', fill_nans=None, fill_infs=None)#
Save network and phase data to a single vtp file for visualizing in Paraview.
network (Network) – The Network containing the data to be written
phases (list, optional) – A list containing Phase(s) containing data to be written
filename (str, optional) – Filename to write data. If no name is given the file is named after the network
fill_nans (scalar) – The value to use to replace NaNs with. The VTK file format does not work with NaNs, so they must be dealt with. The default is None which means property arrays with NaNs are not written to the file. Other useful options might be 0 or -1, but the user must be aware that these are not real values, only place holders.
fill_infs (scalar) – The value to use to replace infs with. The default is
Nonewhich means that property arrays containing
Nonewill not be written to the file, and a warning will be issued. A useful value is