Hi,
while trying to render the intersection of a 4-cube and a 3-cube (I guess
that really doesn't matter), I stopped on trouble with the following:
sage: point_list = [[0.132, -1.028, 0.028],[0.5, 0.5, -1.5],[-0.5, 1.5,
-0.5],[0.5, 0.5, 0.5],[1.5, -0.5, -0.5],[-0.332, -0.332, -0.668],[-1.332,
0.668, 0.332],[-0.932, 0.068, 0.932],[-0.38, -0.38, 1.38],[-0.744, -0.12,
1.12],[-0.7781818182, -0.12, 0.9490909091],[0.62, -1.38, 0.38],[0.144,
-1.04, 0.04],[0.1309090909, -1.0290909091, 0.04]]
sage: P = Polyhedron(vertices = point_list)
So far, no error gets raised. But any method call on "P" will now result in
a traceback ending in "has no attribute '_Vrepresentation'":
sage: P
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-74-5c6d81c07f7c> in <module>()
----> 1 P
/opt/sage-5.7/local/lib/python2.7/site-packages/IPython/core/displayhook.pyc
in __call__(self, result)
236 self.start_displayhook()
237 self.write_output_prompt()
--> 238 format_dict = self.compute_format_data(result)
239 self.write_format_data(format_dict)
240 self.update_user_ns(result)
/opt/sage-5.7/local/lib/python2.7/site-packages/IPython/core/displayhook.pyc
in compute_format_data(self, result)
148 MIME type representation of the object.
149 """
--> 150 return self.shell.display_formatter.format(result)
151
152 def write_format_data(self, format_dict):
/opt/sage-5.7/local/lib/python2.7/site-packages/IPython/core/formatters.pyc
in format(self, obj, include, exclude)
124 continue
125 try:
--> 126 data = formatter(obj)
127 except:
128 # FIXME: log the exception
/opt/sage-5.7/local/lib/python2.7/site-packages/sage/misc/sage_extension.pyc
in __call__(self, obj)
236 s = format_obj(obj)
237 if s is None:
--> 238 s = super(SagePlainTextFormatter, self).__call__(obj)
239 return s
240
/opt/sage-5.7/local/lib/python2.7/site-packages/IPython/core/formatters.pyc
in __call__(self, obj)
445 type_pprinters=self.type_printers,
446 deferred_pprinters=self.deferred_printers)
--> 447 printer.pretty(obj)
448 printer.flush()
449 return stream.getvalue()
/opt/sage-5.7/local/lib/python2.7/site-packages/IPython/lib/pretty.pyc in
pretty(self, obj)
358 if callable(meth):
359 return meth(obj, self, cycle)
--> 360 return _default_pprint(obj, self, cycle)
361 finally:
362 self.end_group()
/opt/sage-5.7/local/lib/python2.7/site-packages/IPython/lib/pretty.pyc in
_default_pprint(obj, p, cycle)
478 if getattr(klass, '__repr__', None) not in _baseclass_reprs:
479 # A user-provided repr.
--> 480 p.text(repr(obj))
481 return
482 p.begin_group(1, '<')
/opt/sage-5.7/local/lib/python2.7/site-packages/sage/structure/sage_object.so
in sage.structure.sage_object.SageObject.__repr__
(sage/structure/sage_object.c:1769)()
/opt/sage-5.7/local/lib/python2.7/site-packages/sage/geometry/polyhedron/base.pyc
in _repr_(self)
466 """
467 desc = ''
--> 468 if self.n_vertices()==0:
469 desc += 'The empty polyhedron'
470 else:
/opt/sage-5.7/local/lib/python2.7/site-packages/sage/misc/cachefunc.so in
sage.misc.cachefunc.CachedMethodCallerNoArgs.__call__
(sage/misc/cachefunc.c:8762)()
/opt/sage-5.7/local/lib/python2.7/site-packages/sage/geometry/polyhedron/base.pyc
in n_vertices(self)
622 2
623 """
--> 624 return len(self.vertices())
625
626 @cached_method
/opt/sage-5.7/local/lib/python2.7/site-packages/sage/misc/cachefunc.so in
sage.misc.cachefunc.CachedMethodCallerNoArgs.__call__
(sage/misc/cachefunc.c:8762)()
/opt/sage-5.7/local/lib/python2.7/site-packages/sage/geometry/polyhedron/base.pyc
in vertices(self)
1218 A vertex at (0, 0, 1, 0), A vertex at (0, 0, 0, 1))
1219 """
-> 1220 return tuple(self.vertex_generator())
1221
1222 @cached_method
/opt/sage-5.7/local/lib/python2.7/site-packages/sage/geometry/polyhedron/base.pyc
in vertex_generator(self)
1193 [A vertex at (0, 1), A vertex at (1, 0), A vertex at
(1, 1)]
1194 """
-> 1195 for V in self.Vrepresentation():
1196 if V.is_vertex():
1197 yield V
/opt/sage-5.7/local/lib/python2.7/site-packages/sage/geometry/polyhedron/base.pyc
in Vrepresentation(self, index)
746 """
747 if index is None:
--> 748 return self._Vrepresentation
749 else:
750 return self._Vrepresentation[index]
/opt/sage-5.7/local/lib/python2.7/site-packages/sage/structure/element.so
in sage.structure.element.Element.__getattr__
(sage/structure/element.c:3637)()
/opt/sage-5.7/local/lib/python2.7/site-packages/sage/structure/misc.so in
sage.structure.misc.getattr_from_other_class (sage/structure/misc.c:1417)()
AttributeError: 'Polyhedra_RDF_cdd_with_category.element_class' object has
no attribute '_Vrepresentation'
sage:
My system (uname -a): Linux felixm 3.8.4-102.fc17.x86_64 #1 SMP Sun Mar 24
13:09:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
My sage (version()):'Sage Version 5.8, Release Date: 2013-03-15'
Thanks you!
--
You received this message because you are subscribed to the Google Groups
"sage-support" 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 http://groups.google.com/group/sage-support?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.