Guest User

Matroid Union, ticket 14667

a guest
Feb 15th, 2014
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.50 KB | None | 0 0
  1. sage: M1=matroids.named_matroids.Fano()
  2. sage: M2=matroids.named_matroids.Vamos()
  3. sage: from sage.matroids.matroid_union import *
  4. sage: MatroidUnion(M1,M2)
  5. ---------------------------------------------------------------------------
  6. NotImplementedError                       Traceback (most recent call last)
  7. <ipython-input-4-07339b303c89> in <module>()
  8. ----> 1 MatroidUnion(M1,M2)
  9.  
  10. /home/rajesh/sage/local/lib/python2.7/site-packages/IPython/core/displayhook.pyc in __call__(self, result)
  11.     236             self.start_displayhook()
  12.     237             self.write_output_prompt()
  13. --> 238             format_dict = self.compute_format_data(result)
  14.     239             self.write_format_data(format_dict)
  15.     240             self.update_user_ns(result)
  16.  
  17. /home/rajesh/sage/local/lib/python2.7/site-packages/IPython/core/displayhook.pyc in compute_format_data(self, result)
  18.     148             MIME type representation of the object.
  19.     149         """
  20. --> 150         return self.shell.display_formatter.format(result)
  21.    151
  22.    152     def write_format_data(self, format_dict):
  23.  
  24. /home/rajesh/sage/local/lib/python2.7/site-packages/IPython/core/formatters.pyc in format(self, obj, include, exclude)
  25.    124                     continue
  26.    125             try:
  27. --> 126                 data = formatter(obj)
  28.    127             except:
  29.    128                 # FIXME: log the exception
  30.  
  31. /home/rajesh/sage/local/lib/python2.7/site-packages/sage/misc/displayhook.pyc in __call__(self, obj)
  32.    508         s = self.try_format_obj(obj)
  33.    509         if s is None:
  34. --> 510             s = super(SagePlainTextFormatter, self).__call__(obj)
  35.    511         return s
  36.    512
  37.  
  38. /home/rajesh/sage/local/lib/python2.7/site-packages/IPython/core/formatters.pyc in __call__(self, obj)
  39.    445                 type_pprinters=self.type_printers,
  40.    446                 deferred_pprinters=self.deferred_printers)
  41. --> 447             printer.pretty(obj)
  42.    448             printer.flush()
  43.    449             return stream.getvalue()
  44.  
  45. /home/rajesh/sage/local/lib/python2.7/site-packages/IPython/lib/pretty.pyc in pretty(self, obj)
  46.    358                             if callable(meth):
  47.    359                                 return meth(obj, self, cycle)
  48. --> 360             return _default_pprint(obj, self, cycle)
  49.    361         finally:
  50.    362             self.end_group()
  51.  
  52. /home/rajesh/sage/local/lib/python2.7/site-packages/IPython/lib/pretty.pyc in _default_pprint(obj, p, cycle)
  53.    478     if getattr(klass, '__repr__', None) not in _baseclass_reprs:
  54.    479         # A user-provided repr.
  55. --> 480         p.text(repr(obj))
  56.    481         return
  57.    482     p.begin_group(1, '<')
  58.  
  59. /home/rajesh/sage/local/lib/python2.7/site-packages/sage/structure/sage_object.so in sage.structure.sage_object.SageObject.__repr__ (sage/structure/sage_object.c:1921)()
  60.  
  61. /home/rajesh/sage/local/lib/python2.7/site-packages/sage/matroids/matroid.so in sage.matroids.matroid.Matroid._repr_ (sage/matroids/matroid.c:7660)()
  62.  
  63. /home/rajesh/sage/local/lib/python2.7/site-packages/sage/matroids/matroid.so in sage.matroids.matroid.Matroid.rank (sage/matroids/matroid.c:7990)()
  64.  
  65. /home/rajesh/sage/local/lib/python2.7/site-packages/sage/matroids/matroid.so in sage.matroids.matroid.Matroid.full_rank (sage/matroids/matroid.c:8229)()
  66.  
  67. /home/rajesh/sage/local/lib/python2.7/site-packages/sage/matroids/matroid.so in sage.matroids.matroid.Matroid.groundset (sage/matroids/matroid.c:2089)()
  68.  
  69. NotImplementedError: subclasses need to implement this.
Advertisement
Add Comment
Please, Sign In to add comment