- classmethod VTK.export_data(network, phases=, filename='', delim=' | ', fill_nans=None, fill_infs=None)¶
Save network and phase data to a single vtp file for visualizing in Paraview.
network (GenericNetwork) – The Network containing the data to be written
phases (list, optional) – A list containing GenericPhase(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
delim (str) – Specify which character is used to delimit the data names. The default is ‘ | ‘ which creates a nice clean output in the Paraview pipeline viewer (e.g. net | property | pore | diameter)
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