Changes between Initial Version and Version 1 of Ticket #22605


Ignore:
Timestamp:
03/15/17 12:59:46 (3 years ago)
Author:
jipilab
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22605 – Description

    initial v1  
    22221.1
    2323sage: Polyhedron(vertices=[[f]])
    24 ---------------------------------------------------------------------------
    25 AttributeError                            Traceback (most recent call last)
    26 <ipython-input-55-aea1b8b1f057> in <module>()
    27 ----> 1 Polyhedron(vertices=[[f]])
    28 
    29 /Users/jplab/sage/sage2/src/sage/misc/lazy_import.pyx in sage.misc.lazy_import.LazyImport.__call__ (/Users/jplab/sage/sage2/src/build/cythonized/sage/misc/lazy_import.c:4007)()
    30     387             True
    31     388         """
    32 --> 389         return self._get_object()(*args, **kwds)
    33     390
    34     391     def __repr__(self):
    35 
    36 /Users/jplab/sage/sage2/local/lib/python2.7/site-packages/sage/geometry/polyhedron/constructor.pyc in Polyhedron(vertices, rays, lines, ieqs, eqns, ambient_dim, base_ring, minimize, verbose, backend)
    37     490     # Specific backends can override the base_ring
    38     491     from sage.geometry.polyhedron.parent import Polyhedra
    39 --> 492     parent = Polyhedra(base_ring, ambient_dim, backend=backend)
    40     493     base_ring = parent.base_ring()
    41     494
    42 
    43 /Users/jplab/sage/sage2/local/lib/python2.7/site-packages/sage/geometry/polyhedron/parent.pyc in Polyhedra(base_ring, ambient_dim, backend)
    44      89         elif base_ring is RDF:
    45      90             backend = 'cdd'
    46 ---> 91         elif base_ring.is_exact():
    47      92             backend = 'field'
    48      93         else:
    49 
     24Traceback (most recent call last):
     25...
    5026AttributeError: type object 'float' has no attribute 'is_exact'
    5127
    5228}}}
    5329
     30The constructor could try to detect the problem and return an informative message.