AutoCNET graph object (io.io_autocnetgraph)¶
Reading/Writing the Graph Object¶
New in version 0.1.1.
- class plio.io.io_autocnetgraph.NumpyEncoder(*, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)[source]¶
- plio.io.io_autocnetgraph.load(projectname)[source]¶
- Read an AutoCNET project into memory. - Parameters:
- projectname (str) – PATH to the project 
- Returns:
- cg – AutoCNET CandidateGraph object 
- Return type:
- object 
 
- plio.io.io_autocnetgraph.save(network, projectname)[source]¶
- Save an AutoCNet candiate graph to disk in a compressed file. The graph adjacency structure is stored as human readable JSON and all potentially large numpy arrays are stored as compressed binary. The project archive is a standard .zip file that can have any ending, e.g., <projectname>.project, <projectname>.zip, <projectname>.myname. - TODO: This func. writes a intermediary .npz to disk when saving. Can we write the .npz to memory? - Parameters:
- network (object) – The AutoCNet Candidate Graph object 
- projectname (str) – The PATH to the output file. 
 
 
 
          