From dc98bbc0c48228abac53ca10b4f199137d3e5f84 Mon Sep 17 00:00:00 2001 From: Gard Spreemann Date: Wed, 30 Mar 2016 14:53:47 +0200 Subject: Very preliminary general simplicial complex. --- phstuff/diphawrapper.py | 61 +++++++++++++++++--- phstuff/simplicial.py | 144 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 196 insertions(+), 9 deletions(-) create mode 100644 phstuff/simplicial.py diff --git a/phstuff/diphawrapper.py b/phstuff/diphawrapper.py index 2cead35..b2c9444 100644 --- a/phstuff/diphawrapper.py +++ b/phstuff/diphawrapper.py @@ -8,6 +8,7 @@ import tempfile import subprocess import phstuff.barcode as bc +import phstuff.simplicial as simpl """Handle marshalling data into and out of DIPHA's formats, and optionally manage running the DIPHA executable. @@ -156,7 +157,7 @@ def save_edge_list(fname, edge_list): for j in range(0, len(edge_list[i])): f.write(struct.pack('