#12607: ChainComplex reports zero homology groups (depending on ChomP)
-------------------------------------+-------------------------------------
       Reporter:  vbraun             |        Owner:  jhpalmieri
           Type:  defect             |       Status:  needs_review
       Priority:  major              |    Milestone:  sage-6.9
      Component:  algebraic          |   Resolution:
  topology                           |    Merged in:
       Keywords:  chomp              |    Reviewers:
        Authors:  Frédéric Chapoton  |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:  u/chapoton/12607   |  5b75dfe33aa8ed5c723492ac6761422332da9560
   Dependencies:                     |     Stopgaps:
-------------------------------------+-------------------------------------

Comment (by jhpalmieri):

 If I install CHomP, I get one doctest failure:
 {{{
 sage -t --long --warn-long 51.8 src/sage/homology/delta_complex.py
 **********************************************************************
 File "src/sage/homology/delta_complex.py", line 605, in
 sage.homology.delta_complex.DeltaComplex.chain_complex
 Failed example:
     T.homology(subcomplex=T)
 Exception raised:
     Traceback (most recent call last):
       File
 
"/Users/palmieri/Desktop/Sage_stuff/sage_builds/CHOMP/sage-6.8/local/lib/python2.7
 /site-packages/sage/doctest/forker.py", line 496, in _run
         self.compile_and_execute(example, compiler, test.globs)
       File
 
"/Users/palmieri/Desktop/Sage_stuff/sage_builds/CHOMP/sage-6.8/local/lib/python2.7
 /site-packages/sage/doctest/forker.py", line 858, in compile_and_execute
         exec(compiled, globs)
       File "<doctest
 sage.homology.delta_complex.DeltaComplex.chain_complex[8]>", line 1, in
 <module>
         T.homology(subcomplex=T)
       File
 
"/Users/palmieri/Desktop/Sage_stuff/sage_builds/CHOMP/sage-6.8/local/lib/python2.7
 /site-packages/sage/homology/cell_complex.py", line 541, in homology
         answer = C.homology(**kwds)
       File
 
"/Users/palmieri/Desktop/Sage_stuff/sage_builds/CHOMP/sage-6.8/local/lib/python2.7
 /site-packages/sage/misc/decorators.py", line 705, in wrapper
         return func(*args, **kwds)
       File
 
"/Users/palmieri/Desktop/Sage_stuff/sage_builds/CHOMP/sage-6.8/local/lib/python2.7
 /site-packages/sage/homology/chain_complex.py", line 1213, in homology
         return self._homology_chomp(deg, base_ring, verbose, generators)
       File
 
"/Users/palmieri/Desktop/Sage_stuff/sage_builds/CHOMP/sage-6.8/local/lib/python2.7
 /site-packages/sage/homology/chain_complex.py", line 1054, in
 _homology_chomp
         generators=generators)
       File
 
"/Users/palmieri/Desktop/Sage_stuff/sage_builds/CHOMP/sage-6.8/local/lib/python2.7
 /site-packages/sage/interfaces/chomp.py", line 590, in homchain
         return CHomP()('homchain', complex, **kwds)
       File
 
"/Users/palmieri/Desktop/Sage_stuff/sage_builds/CHOMP/sage-6.8/local/lib/python2.7
 /site-packages/sage/interfaces/chomp.py", line 263, in __call__
         raise RuntimeError('error inside CHomP')
     RuntimeError: error inside CHomP
 **********************************************************************
 1 item had failures:
    1 of  13 in sage.homology.delta_complex.DeltaComplex.chain_complex
     [145 tests, 1 failure, 1.31 s]
 }}}
 If I then run tests with `--optional=sage,chomp`, I get a few more errors:
 {{{
 sage -t --long --warn-long 51.8 src/sage/homology/tests.py
 **********************************************************************
 File "src/sage/homology/tests.py", line 10, in sage.homology.tests
 Failed example:
     test_random_chain_complex(trials=20)  # optional - CHomP
 Expected nothing
 Got:
     Random testing has revealed a problem in test_random_chain_complex
     Please report this bug!  You may be the first
     person in the world to have seen this problem.
     Please include this random seed in your bug report:
     Random seed: 159304674290093254409624536430227373862
     RuntimeError('error inside CHomP',)
 **********************************************************************
 File "src/sage/homology/tests.py", line 11, in sage.homology.tests
 Failed example:
     test_random_chain_complex(level=2, trials=20)  # optional - CHomP
 Expected nothing
 Got:
     Random testing has revealed a problem in test_random_chain_complex
     Please report this bug!  You may be the first
     person in the world to have seen this problem.
     Please include this random seed in your bug report:
     Random seed: 130448957777511520486902617862493201212
     RuntimeError('error inside CHomP',)
 **********************************************************************
 File "src/sage/homology/tests.py", line 12, in sage.homology.tests
 Failed example:
     test_random_chain_complex(level=3, trials=20)  # long time # optional
 - CHomP
 Expected nothing
 Got:
     Random testing has revealed a problem in test_random_chain_complex
     Please report this bug!  You may be the first
     person in the world to have seen this problem.
     Please include this random seed in your bug report:
     Random seed: 337572972161276702442755420588198438138
     RuntimeError('error inside CHomP',)
 **********************************************************************
 File "src/sage/homology/tests.py", line 72, in
 sage.homology.tests.test_random_chain_complex
 Failed example:
     test_random_chain_complex(trials=2)  # optional - CHomP
 Expected nothing
 Got:
     Random testing has revealed a problem in test_random_chain_complex
     Please report this bug!  You may be the first
     person in the world to have seen this problem.
     Please include this random seed in your bug report:
     Random seed: 190504759948336957776305453124739057674
     RuntimeError('error inside CHomP',)
 **********************************************************************
 2 items had failures:
    3 of   9 in sage.homology.tests
    1 of   3 in sage.homology.tests.test_random_chain_complex
     [20 tests, 4 failures, 2.40 s]
 }}}
 We need to fix the failures in `delta_complex.py`. It would be nice to fix
 the ones in `tests.py`, but that could be done on another ticket. (This is
 on OS X, for what that's worth.)

--
Ticket URL: <http://trac.sagemath.org/ticket/12607#comment:13>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to