summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGard Spreemann <gspreemann@gmail.com>2016-03-29 13:35:34 +0200
committerGard Spreemann <gspreemann@gmail.com>2016-03-29 13:35:34 +0200
commitd8a2062c7c5264bb051cd13292a8659787e9c408 (patch)
tree914862ab07f815de201126b91f95a46afbbc6a7f
parent334cc2279104e7ec8c0b2bf165f8c538e9216789 (diff)
Cubical support.
-rw-r--r--phstuff/diphawrapper.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/phstuff/diphawrapper.py b/phstuff/diphawrapper.py
index 136104e..e7ffa73 100644
--- a/phstuff/diphawrapper.py
+++ b/phstuff/diphawrapper.py
@@ -364,6 +364,12 @@ class DiphaRunner:
save_edge_list(self.ifile, edge_list)
self.ready = True
+ def cubical(self, complex):
+ """Initialize to run with a cubical complex. See `save_cubical`."""
+
+ save_cubical(self.ifile, complex)
+ self.read = True
+
def run(self):
"""Run DIPHA. Success is indicated by `code` member of the object
being zero. If that is the case, then the result is available