from_csv#

from_csv(filename, project=None, delim=' | ')[source]#

Opens a ‘csv’ file, reads in the data, and adds it to the Network

Parameters
  • filename (str (optional)) – The name of the file containing the data to import. The formatting of this file is outlined below.

  • project (Project) – A GenericNetwork is created and added to the specified Project. If no Project object is supplied then one will be created and returned.

Returns

project – An OpenPNM project containing the data assigned to Generic versions of the objects from which it was exported.

Return type

list