diff --git a/src/macrogen/report.py b/src/macrogen/report.py index d179f88..fc957ff 100644 --- a/src/macrogen/report.py +++ b/src/macrogen/report.py @@ -494,18 +494,18 @@ def report_downloads(graphs: MacrogenesisInfo): target.mkdir(exist_ok=True, parents=True) simplified = simplify_graph(graphs.base) - nx.write_gpickle(graphs.base, str(target / 'base.gpickle')) nx.write_gexf(simplified, str(target / 'base.gexf')) nx.write_edgelist(simplified, str(target / 'base.edges')) + graphs.save(target / "macrogen-info.zip") write_html(target / 'downloads.php', """

Downloadable files for the base graph in various formats:

-

Nodes

The nodes are either URIs or dates in ISO 8601 format. URIs of the form @@ -567,7 +567,16 @@ def report_downloads(graphs: MacrogenesisInfo): file name and line of the XML file with this assertion - + + +

MacrogenesisInfo

+

The macrogen-info.zip file contains the data required to recreate the graph info + in the faust-macrogen library. To do so, run:

+
+    from macrogen import MacrogenesisInfo
+    graphs = MacrogenesisInfo('macrogen-info.zip')
+    
+

Note this is barely tested yet.

""", "Downloads")