[sage-devel] Re: public single cell server

2011-11-18 Thread Eviatar
It broke again. I'm pretty sure it's a timeout issue this time, since I was 
iterating over a large list.

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] MIME type for .spkg files?

2011-11-18 Thread Jeroen Demeyer
On 2011-11-17 22:33, Bill Janssen wrote:
> Is there a MIME type for .spkg files?

I guess not, but spkg files are simply bzip2'ed tar files, so if there
is a MIME type for that, you should probably use that.

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] MIME type for .spkg files?

2011-11-18 Thread Keshav Kini
Some .spkg files are just tar files, not bzip2'd, right?

-Keshav


Join us in #sagemath on irc.freenode.net !

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: public single cell server

2011-11-18 Thread Jason Grout

On 11/18/11 1:50 AM, Eviatar wrote:

It broke again. I'm pretty sure it's a timeout issue this time, since I
was iterating over a large list.


Was it this command?

while 1:
print 'hi'

I'm looking into it.  The infinite loop is indeed stopped, further 
calculations are indeed run, and the further calculation output is put 
into the database, so everything seems okay on the server end, but 
somehow the further output isn't making it back to the browser.


Thanks,

Jason

--
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] MIME type for .spkg files?

2011-11-18 Thread Justin C. Walker

On Nov 18, 2011, at 00:39 , Keshav Kini wrote:

> Some .spkg files are just tar files, not bzip2'd, right?

AFAICT, only the fortran package is a plain tar file.  At least in the 
'standard' directory.

Justin

--
Justin C. Walker
Curmudgeon-at-large
--
Network, n., Difference between work
charged for and work done



-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] indexed symbolic variables

2011-11-18 Thread Burcin Erocal
Hi Florent,

On Thu, 17 Nov 2011 14:44:35 +0100
Florent Hivert  wrote:

> On Wed, Nov 16, 2011 at 03:48:10PM +0100, Burcin Erocal wrote:
> > On Wed, 16 Nov 2011 15:10:54 +0100
> > Florent Hivert  wrote:
> > 
> > > > Pynac supports indexed expressions already. It just isn't
> > > > wrapped in Sage yet. Again, there is an experimental patch
> > > > available:
> > > > 
> > > > http://sage.math.washington.edu/home/burcin/indexed_expression-20110727.patch
> > > > 
> > > > Since you can wrap any hashable Python object in a symbolic
> > > > expression with SR._force_pyobject(), this could replace your
> > > > IndexedVarExpr class.
> > > > 
> > > > I would appreciate any help with cleaning up these patches,
> > > > adding doctests etc. so they can be merged. :)
> > > 
> > > I'll try to cleanup this one, though I don't know anything about
> > > Pynac's internal... Is there a lot more work to do than adding
> > > doctests ?
> > 
> > It should be only doctests, but you never know what comes up. :)
> > 
> > I haven't looked at the patch in detail. I don't recall if any low
> > level modification is needed. I'll be on IRC if you run into
> > anything.
> 
> I'm at a conference so I don't have that much time working on it right
> now. I'll probably have more time next week.
> 
> My two first attempts weren't successful: first of all, it seems that
> you cannot index variables by any Python objects, only integers or
> sequences of thereof. I typically want to put permutations, trees or
> group elements in the index. Is that a limitation of Pynac or of your
> wrapper ?

This was a limitation of the wrapper. It tries to coerce the argument
to SR. If Pynac doesn't need to do any arithmetic with these objects,
one can skip the coercion rules with the SR._force_pyobject() function.

I updated the patch to allow arbitrary (hashable) Python objects and
omit the dimension argument.

> Second, I got some Segfault so there is probably more work that only
> doctest. I have to investigate more to get a simple reproducible
> behavior. Can you check that I have the latest version of your patch:
> it is called: indexed_expression-20110727.patch

That was the latest version. :) Here is a new one:

http://sage.math.washington.edu/home/burcin/indexed_expression_2018.patch


Note that I never actually used this. It is possible that there are
problems. I can try to fix these when you have a simple example.

It's possible that your segfault is caused by #9880. We are trying to
finish that ticket off for the next release. Unfortunately, I am really
short on time these days.


Cheers,
Burcin

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


Re: [sage-devel] Re: 5 doctest errors when building 4.7.2

2011-11-18 Thread Nathann Cohen
Yoo !!!

> doctest failure in linear_programming.rst:
> http://trac.sagemath.org/sage_trac/ticket/12019

This ticket is now waiting for a review.

> failing doctest in integer_vector.py (gale ryser theorem)
> http://trac.sagemath.org/sage_trac/ticket/12022

Same here. And these tickets could not be shorter :-)

Nathann

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: indexed symbolic variables

2011-11-18 Thread Jean-Pierre Flori


On 18 nov, 13:52, Burcin Erocal  wrote:
> Hi Florent,
>
> On Thu, 17 Nov 2011 14:44:35 +0100
>
>
>
>
>
>
>
>
>
> Florent Hivert  wrote:
> > On Wed, Nov 16, 2011 at 03:48:10PM +0100, Burcin Erocal wrote:
> > > On Wed, 16 Nov 2011 15:10:54 +0100
> > > Florent Hivert  wrote:
>
> > > > > Pynac supports indexed expressions already. It just isn't
> > > > > wrapped in Sage yet. Again, there is an experimental patch
> > > > > available:
>
> > > > >http://sage.math.washington.edu/home/burcin/indexed_expression-201107...
>
> > > > > Since you can wrap any hashable Python object in a symbolic
> > > > > expression with SR._force_pyobject(), this could replace your
> > > > > IndexedVarExpr class.
>
> > > > > I would appreciate any help with cleaning up these patches,
> > > > > adding doctests etc. so they can be merged. :)
>
> > > > I'll try to cleanup this one, though I don't know anything about
> > > > Pynac's internal... Is there a lot more work to do than adding
> > > > doctests ?
>
> > > It should be only doctests, but you never know what comes up. :)
>
> > > I haven't looked at the patch in detail. I don't recall if any low
> > > level modification is needed. I'll be on IRC if you run into
> > > anything.
>
> > I'm at a conference so I don't have that much time working on it right
> > now. I'll probably have more time next week.
>
> > My two first attempts weren't successful: first of all, it seems that
> > you cannot index variables by any Python objects, only integers or
> > sequences of thereof. I typically want to put permutations, trees or
> > group elements in the index. Is that a limitation of Pynac or of your
> > wrapper ?
>
> This was a limitation of the wrapper. It tries to coerce the argument
> to SR. If Pynac doesn't need to do any arithmetic with these objects,
> one can skip the coercion rules with the SR._force_pyobject() function.
>
> I updated the patch to allow arbitrary (hashable) Python objects and
> omit the dimension argument.
>
> > Second, I got some Segfault so there is probably more work that only
> > doctest. I have to investigate more to get a simple reproducible
> > behavior. Can you check that I have the latest version of your patch:
> > it is called: indexed_expression-20110727.patch
>
> That was the latest version. :) Here is a new one:
>
> http://sage.math.washington.edu/home/burcin/indexed_expression_20...
>
> Note that I never actually used this. It is possible that there are
> problems. I can try to fix these when you have a simple example.
>
> It's possible that your segfault is caused by #9880. We are trying to
> finish that ticket off for the next release. Unfortunately, I am really
> short on time these days.
I am too...
Anyway I'll try to have a look at the "match" problem this week-end,
leaving us with doctests only hopefully.
>
> Cheers,
> Burcin

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: public single cell server

2011-11-18 Thread Eviatar
Yes, that was it. Not a list, sorry.

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Closing tickets

2011-11-18 Thread David Roe
For those of us who don't have bits to close tickets, should we just
change the milestone to "sage-duplicate/invalid/wontfix," or do we
need to do something else?
David

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] Re: Closing tickets

2011-11-18 Thread Keshav Kini
I was told to set the ticket to Positive Review, as it catches Jeroen's 
eye. Maybe that's not the correct thing to do, though.

-Keshav


Join us in #sagemath on irc.freenode.net !

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org


[sage-devel] problems in inheriting Graphics() class

2011-11-18 Thread P Purkayastha
Hi all,

  First of all what I am trying to do: I am trying to make loglog plots, 
semilog plots, etc in Sage. I know of #4529, but it is not really helpful. 
There are two ways I realized I can go about doing what I want:
1. Use matplotlib directly, but then I can't interface with Sage properly.
For example, the following works in the notebook and the image gets 
displayed:
import matplotlib.pylab as Pyl
Pyl.loglog(range(1,10), map(lambda i: 10^-i, range(1, 10)), 'r+', 
label='loglog')
Pyl.legend()
Pyl.savefig('./sage0.png')
The downside is that the syntax is matlab syntax and is different from the 
one in Sage. Also, I would like to manipulate the graphics objects as 
easily as in Sage.

2. Modify Sage.
  I made a LogGraphics() class and after looking at the sources in plot and 
the ticket #4529, I feel I need to redefine matplotlib() so that I can make 
loglog plots, semilog plots, etc such that I still can work from the 
notebook. Also, if I do it with Sage, then I can "add" graphics easily. 

Problem I am facing. I have the following two lines in the beginning of my 
file:

from sage.all import *  # Just get things working for now
class LogGraphics(Graphics):

I don't define __init__(), the only things defined in LogGraphics are 
__add__(), and matplotlib() where I have removed a lot of stuff on ticks, 
since I don't want Sage to mess with the ticks. On running the program I 
get this Attribute error:
AttributeError: 'LogGraphics' object has no attribute 
'_LogGraphics__show_axes'

If I copy the __init__() from Graphics to LogGraphics then this error goes 
away and I instead get another error:
AttributeError: 'LogGraphics' object has no attribute '_Graphics__objects'

So now I am at a loss. I don't want to start reimplementing every function 
that is there in Graphics(). How do I make LogGraphics inherit Graphics() 
properly?

NB: I am quite new to OOP, so I might be understanding some things wrong :)

-- 
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel+unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org