[sage-devel] Re: help needed with import statement

2015-05-15 Thread Samuel Lelievre
sage: import_statements(Matroid) from sage.matroids.constructor import Matroid -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.

[sage-devel] Re: help needed with import statement

2015-05-14 Thread David Perkinson
I then get: ) failed: NotImplementedError: subclasses need to impleme nt this.> However, as I mentioned above, it makes more sense to use tutte_polynomial from Graph in my situation (given that its bug has been fixed). So my problem no longer really exists. Thanks for the help! On Thursday

[sage-devel] Re: help needed with import statement

2015-05-14 Thread Dima Pasechnik
On Thursday, 14 May 2015 21:16:03 UTC+1, David Perkinson wrote: > > After putting > > import sage.matroids.matroid > how about from sage.matroids.matroid import Matroid > > in sandpile.py and running sage -br, I get the following: > > sage: f = Sandpile(graphs.CycleGraph(4),0) > sage: f.t

[sage-devel] Re: help needed with import statement

2015-05-14 Thread David Perkinson
I guess that since the bug in the tutte_polynomial method for Graph will be fixed in sage 6.7, I don't need to use the Matroid version anyway. On Thursday, May 14, 2015 at 1:16:03 PM UTC-7, David Perkinson wrote: > > After putting > > import sage.matroids.matroid > > in sandpile.py and running

[sage-devel] Re: help needed with import statement

2015-05-14 Thread David Perkinson
After putting import sage.matroids.matroid in sandpile.py and running sage -br, I get the following: sage: f = Sandpile(graphs.CycleGraph(4),0) sage: f.tutte_polynomial() --- NameError Traceb

[sage-devel] Re: help needed with import statement

2015-05-14 Thread Dima Pasechnik
On Thursday, 14 May 2015 19:32:48 UTC+1, David Perkinson wrote: > > I am working on sandpile.py and would like to use tutte_polynomial from > sage/matroids/matroid.pyx. Could someone tell me the correct import > statement put in sandpile.py? > If you import sage.matroids.matroid you can creat