network_from_porespy#

network_from_porespy(filename)[source]#

Load a network extracted using the PoreSpy package

Parameters:

filename (str or dict) – Can either be a filename pointing to a pickled dictionary, or a handle to a dictionary in memory. The second option lets users avoid the step of saving the dictionary to a file.

Returns:

network – An OpenPNM network dictionary

Return type:

dict