class openpnm.io.JSONGraphFormat[source]

Class for reading and writing OpenPNM networks to JSON Graph Format (JGF).


The JGF standard must contain data formatted according to http://jsongraphformat.info and enforced by JSON schema validation.

Users must transfer any phase data to the network manually if they wish to keep it.


export_data(network[, filename])

Write the network to disk as a JGF file.

import_data(filename[, project])

Loads the JGF file onto the given project.