Fixed bugs in rips-pairwise-cohomology.py whose origin is unclear to me dev
authorDmitriy Morozov <dmitriy@mrzv.org>
Mon, 10 Aug 2009 15:22:32 -0700
branchdev
changeset 159 92318b22ffa5
parent 158 ce2aa05994f0
child 160 1b30e507e8aa
Fixed bugs in rips-pairwise-cohomology.py whose origin is unclear to me
examples/cohomology/rips-pairwise-cohomology.py
--- a/examples/cohomology/rips-pairwise-cohomology.py	Tue Aug 04 17:12:47 2009 -0700
+++ b/examples/cohomology/rips-pairwise-cohomology.py	Mon Aug 10 15:22:32 2009 -0700
@@ -1,6 +1,6 @@
 #!/usr/bin/env python
 
-from    dionysus        import Simplex, CohomologyPersistence, points_file, PairwiseDistances, ExplicitDistances, Rips
+from    dionysus        import Simplex, CohomologyPersistence, points_file, PairwiseDistances, ExplicitDistances, Rips, data_dim_cmp
 from    sys             import argv, exit
 import  time
 
@@ -41,7 +41,7 @@
         print dimension, birth, 'inf'         # dimension, simplex data = birth
         print "# Cocycle at (dim=%d, birth=%f)" % ccl.birth
         for e in ccl:
-            print "#  ", e.si.order(), normalized(e.coefficient, prime)
+            print "#  ", e.si.order, normalized(e.coefficient, prime)
 
 def normalized(coefficient, prime):
     if coefficient > prime/2: