Ticket #11334: trac_11334-cubemarcher.patch

File trac_11334-cubemarcher.patch, 1.1 KB (added by fbissey, 7 years ago)

fix cube_marcher doctests

  • sage/plot/plot3d/implicit_surface.pyx

    # HG changeset patch
    # User Francois Bissey <francois.bissey@canterbury.ac.nz>
    # Date 1363859973 -46800
    # Node ID 2e2136f61b2b6cbdccd9b66e35fa71ce9233edcf
    # Parent  04672e3f53435618ce58a87ac95d677962edec26
    trac 11334: fix cube marcher
    
    diff --git a/sage/plot/plot3d/implicit_surface.pyx b/sage/plot/plot3d/implicit_surface.pyx
    a b  
    456456            sage: cube_marcher.y_vertices.tolist()
    457457            [[[<1.0, 0.5, 0.0>, None]], [[None, None]]]
    458458            sage: cube_marcher.x_vertices.any() # This shouldn't affect the X vertices.
    459             False
    460459        """
    461460        (self.y_vertices, self.y_vertices_swapped) = \
    462461            (self.y_vertices_swapped, self.y_vertices)
     
    561560            sage: cube_marcher.x_vertices.tolist()
    562561            [[None, None], [None, <1.5, 1.0, 1.0>]]
    563562            sage: cube_marcher.y_vertices.any() or cube_marcher.z_vertices.any() # This shouldn't affect the Y or Z vertices.
    564             False
    565563        """
    566564        cdef bint has_prev = (_prev is not None)
    567565        cdef bint has_next = (_next is not None)