Fixed bugs in cocycle.py introduced when rips-pairwise-cohomology.py was originally added dev
authorDmitriy Morozov <dmitriy@mrzv.org>
Mon, 10 Aug 2009 16:48:13 -0700
branchdev
changeset 160 1b30e507e8aa
parent 159 92318b22ffa5
child 161 4bfb7c31ab28
Fixed bugs in cocycle.py introduced when rips-pairwise-cohomology.py was originally added
examples/cohomology/cocycle.py
--- a/examples/cohomology/cocycle.py	Mon Aug 10 15:22:32 2009 -0700
+++ b/examples/cohomology/cocycle.py	Mon Aug 10 16:48:13 2009 -0700
@@ -6,7 +6,8 @@
 from    sys             import argv, exit
 import  os.path
 
-def smooth(boundary_list, cocycle_list, vertexmap_list):
+def smooth(boundary_list, cocycle_list, vertices):
+    vertices = [v[1] for v in vertices]
     dimension = max((max(d[1], d[2]) for d in boundary_list))
     dimension += 1