Ticket #8709: trac_8709.patch

File trac_8709.patch, 1.8 KB (added by mhampton, 13 years ago)

apply instead of 8650 patch

  • sage/geometry/polyhedra.py

    # HG changeset patch
    # User Marshall Hampton <hamptonio@gmail.com>
    # Date 1271563573 18000
    # Node ID a15e37f79d7cfd706bdc6f55e6584d796f3a7f03
    # Parent  ea02bc44fa947f97673768aede1126e6bc7b2c79
    trac_8709 slight change of doctest to avoid itanium problem
    
    diff -r ea02bc44fa94 -r a15e37f79d7c sage/geometry/polyhedra.py
    a b  
    30883088            sage: [len(x) for x in c5_20_fl.level_sets()] # not tested - very long time
    30893089            [1, 20, 190, 580, 680, 272, 1]
    30903090            sage: polytopes.n_cube(2).face_lattice().plot()
     3091            sage: level_sets = polytopes.cross_polytope(2).face_lattice().level_sets()
     3092            sage: print level_sets[0], level_sets[-1]
     3093            [(None, (0, 1, 2, 3))] [((0, 1, 2, 3), None)]
    30913094
    30923095        REFERENCES:
    30933096
     
    30993102        except AttributeError:
    31003103            pass
    31013104        # dictionary of the form: (vertices,faces):(upper cover keys)
    3102         f_l_dict = {(None,None):[(tuple([x]),tuple(self._vertex_face_indexset([x])))
     3105        f_l_dict = {(None,tuple(range(self.n_Hrepresentation()))):[(tuple([x]),tuple(self._vertex_face_indexset([x])))
    31033106                                 for x in range(self.n_Vrepresentation())]}
    31043107        todolist = f_l_dict.values()[0][:]
    31053108        while todolist != []:
     
    31133116            minimals = []
    31143117            if candidates == []:
    31153118                f_l_dict[todo].append((tuple(range(self.n_Vrepresentation())),
    3116                                        tuple(range(self.n_Hrepresentation()))))
     3119                                      None))
    31173120            while candidates != []:
    31183121                c = candidates[0]
    31193122                closure = self._v_closure(list(todo[0])+[c])