diff options
author | Gard Spreemann <gspreemann@gmail.com> | 2016-03-30 15:09:27 +0200 |
---|---|---|
committer | Gard Spreemann <gspreemann@gmail.com> | 2016-03-30 15:09:27 +0200 |
commit | bdb5bb5bb9af58e4e61acae13ea1c35b52bde2e7 (patch) | |
tree | c557d25a58a03beecb70c0975cec60581925c971 /phstuff/diphawrapper.py | |
parent | dc98bbc0c48228abac53ca10b4f199137d3e5f84 (diff) |
Some documentation for general simplicial complexes.
Diffstat (limited to 'phstuff/diphawrapper.py')
-rw-r--r-- | phstuff/diphawrapper.py | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/phstuff/diphawrapper.py b/phstuff/diphawrapper.py index b2c9444..4d1742e 100644 --- a/phstuff/diphawrapper.py +++ b/phstuff/diphawrapper.py @@ -187,6 +187,19 @@ def save_cubical(fname, array): f.write(struct.pack("<d", float(w))) def save_simplicial(fname, complex): + """*EXPERIMENTAL*. Save a filtered simplicial complex. + + Corresponds to DIPHA's "weighted boundary matrix". + + Parameters: + ----------- + + fname: Name of file to write. + + complex: Simplicial complex to save. + + """ + complex.order() assert(complex.is_ordered()) @@ -221,10 +234,6 @@ def save_simplicial(fname, complex): f.write(struct.pack("<q", bnode.i)) - - - - def load_barcode(fname, top_dim = None): """Load a barcode as written by DIPHA. |