Ticket #6099: 6099-3.patch

File 6099-3.patch, 3.3 KB (added by bantieau, 10 years ago)

tweak to be compatibe with #6141, which changes facets to facets().

  • sage/homology/chain_complex_homspace.py

    # HG changeset patch
    # User Benjamin Antieau <antieau@math.uic.edu>
    # Date 1245197500 25200
    # Node ID 31c359ab9bdcc70fefe9ce41fdfafc9489a7537e
    # Parent  f070a86fd72856af46c1bc6c771c040355909c90
    Fix doctests for trac #6309 and update to use facets().
    
    diff -r f070a86fd728 -r 31c359ab9bdc sage/homology/chain_complex_homspace.py
    a b  
    2424    sage: x = i.associated_chain_complex_morphism(augmented=True)
    2525    sage: x
    2626    Chain complex morphism from Chain complex with at most 4 nonzero terms over Integer Ring to Chain complex with at most 4 nonzero terms over Integer Ring
    27     sage: x._mat
    28     x._mathematica_       x._mathematica_init_  x._matrix_dictionary 
    29     sage: x._matrix_dictionary
    30 
    31     {-1: [1],
    32      0: [1 0 0 0 0 0 0 0 0]
    33     [0 1 0 0 0 0 0 0 0]
    34     [0 0 1 0 0 0 0 0 0]
    35     [0 0 0 1 0 0 0 0 0]
    36     [0 0 0 0 1 0 0 0 0]
    37     [0 0 0 0 0 1 0 0 0]
    38     [0 0 0 0 0 0 1 0 0]
    39     [0 0 0 0 0 0 0 1 0]
    40     [0 0 0 0 0 0 0 0 1],
    41      1: [1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
    42     [0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
    43     [0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
    44     [0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
    45     [0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0]
    46     [0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0]
    47     [0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0]
    48     [0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0]
    49     [0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0]
    50     [0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0]
    51     [0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0]
    52     [0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0]
    53     [0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0]
    54     [0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0]
    55     [0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0]
    56     [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0]
    57     [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0]
    58     [0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1],
    59      2: [1 0 0 0 0 0]
    6027
    6128    sage: S = simplicial_complexes.Sphere(2)
    6229    sage: A = Hom(S,S)
  • sage/homology/chain_complex_morphism.py

    diff -r f070a86fd728 -r 31c359ab9bdc sage/homology/chain_complex_morphism.py
    a b  
    1111EXAMPLES::
    1212
    1313    from sage.matrix.constructor import zero_matrix
     14    sage: S = simplicial_complexes.Sphere(1)
    1415    sage: S
    1516    Simplicial complex with vertex set (0, 1, 2) and facets {(1, 2), (0, 2), (0, 1)}
    1617    sage: C = S.chain_complex()
     
    8485        EXAMPLES::
    8586
    8687            from sage.matrix.constructor import zero_matrix
     88            sage: S = simplicial_complexes.Sphere(1)
    8789            sage: S
    8890            Simplicial complex with vertex set (0, 1, 2) and facets {(1, 2), (0, 2), (0, 1)}
    8991            sage: C = S.chain_complex()
  • sage/homology/simplicial_complex_morphism.py

    diff -r f070a86fd728 -r 31c359ab9bdc sage/homology/simplicial_complex_morphism.py
    a b  
    346346            Simplicial complex with vertex set (0, 1, 2, 3, 4, 5) and facets {(0, 1)}
    347347
    348348        """
    349         fa = [self(i) for i in self._domain.facets]
     349        fa = [self(i) for i in self._domain.facets()]
    350350        return simplicial_complex.SimplicialComplex(set(self._vertex_dictionary.values()),fa,maximality_check=True)
    351351       
    352352    def is_surjective(self):