#20718: Simplicial complexes: consistently order faces when computing chain
complexes, homology
-------------------------------------+-------------------------------------
       Reporter:  jhpalmieri         |        Owner:
           Type:  enhancement        |       Status:  needs_work
       Priority:  minor              |    Milestone:  sage-7.3
      Component:  algebraic          |   Resolution:
  topology                           |    Merged in:
       Keywords:  days74             |    Reviewers:  Travis Scrimshaw
        Authors:  John Palmieri      |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  6bd5a97d9e9a6a752eccc8d566b50d7c85c9c50f
  u/jhpalmieri/homology_sorted       |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------
Changes (by vbraun):

 * status:  positive_review => needs_work


Comment:

 {{{
 sage -t src/sage/homology/simplicial_complex.py
 **********************************************************************
 File "src/sage/homology/simplicial_complex.py", line 1391, in
 sage.homology.simplicial_complex.SimplicialComplex.n_cells
 Failed example:
     S = SimplicialComplex([[complex(i), complex(1)]], sort_facets=False)
 Exception raised:
     Traceback (most recent call last):
       File "/home/release/Sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 498, in _run
         self.compile_and_execute(example, compiler, test.globs)
       File "/home/release/Sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 861, in compile_and_execute
         exec(compiled, globs)
       File "<doctest
 sage.homology.simplicial_complex.SimplicialComplex.n_cells[6]>", line 1,
 in <module>
         S = SimplicialComplex([[complex(i), complex(Integer(1))]],
 sort_facets=False)
       File "/home/release/Sage/local/lib/python2.7/site-
 packages/sage/homology/simplicial_complex.py", line 999, in __init__
         vertices = tuple(range(vertex_set+1))
     TypeError: can only concatenate list (not "int") to list
 **********************************************************************
 File "src/sage/homology/simplicial_complex.py", line 1392, in
 sage.homology.simplicial_complex.SimplicialComplex.n_cells
 Failed example:
     S.n_cells(0)
 Exception raised:
     Traceback (most recent call last):
       File "/home/release/Sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 498, in _run
         self.compile_and_execute(example, compiler, test.globs)
       File "/home/release/Sage/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 861, in compile_and_execute
         exec(compiled, globs)
       File "<doctest
 sage.homology.simplicial_complex.SimplicialComplex.n_cells[7]>", line 1,
 in <module>
         S.n_cells(Integer(0))
       File "sage/structure/parent.pyx", line 851, in
 sage.structure.parent.Parent.__getattr__
 (build/cythonized/sage/structure/parent.c:8117)
         attr = getattr_from_other_class(self, self._category.parent_class,
 name)
       File "sage/structure/misc.pyx", line 253, in
 sage.structure.misc.getattr_from_other_class
 (build/cythonized/sage/structure/misc.c:1763)
         raise dummy_attribute_error
     AttributeError: 'Set_object_enumerated_with_category' object has no
 attribute 'n_cells'
 **********************************************************************
 1 item had failures:
    2 of   9 in sage.homology.simplicial_complex.SimplicialComplex.n_cells
     [554 tests, 2 failures, 2.99 s]
 ----------------------------------------------------------------------
 sage -t src/sage/homology/simplicial_complex.py  # 2 doctests failed
 ----------------------------------------------------------------------
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/20718#comment:6>
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 https://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to