[sage-devel] Re: Trouble compilng 5.12

2013-10-10 Thread Andrew Mathas
Excellent! Thank you Jean-Pierre, this worked (or at least the compile is now in full swing again). Andrew ... real 14.882user 12.442sys 1.752pcpu 95.38 Successfully installed pil-1.1.6.p4 Deleting temporary build directory /usr/local/src/sage/sage-5.12/spkg/build/pil-1.1.6.p4 Finis

[sage-devel] Trouble compilng 5.12

2013-10-10 Thread Andrew Mathas
I'm having trouble compiling 5.12. Sage build to the extend that I get an executable which runs, but the compile fails to compile pil-1.1.6.p4 and exits with the error from the end of the log file is below. It's a bit funny in that pil-1.1.6.p4 installed fine with 5.11. I tried testing the e

[sage-devel] Re: Are Laurent polynomials really this broken? (or is it me?)

2013-09-19 Thread Andrew Mathas
On Thursday, 19 September 2013 08:51:02 UTC+2, Nils Bruin wrote: > > > I think the error is elsewhere: > > sage: P.=LaurentPolynomialRing(ZZ,2) > sage: p=2*u**-1*v**-1+u*v > sage: [ type(c) for (exp,c) in p.dict().iteritems()] > [sage.rings.rational.Rational, sage.rings.rational.Rational] > > The

[sage-devel] Are Laurent polynomials really this broken? (or is it me?)

2013-09-18 Thread Andrew Mathas
I have a Laurent polynomial ring in two variables: R = Z[u,u^-1,v,v^-1]. I want to implement the ring automorphism of R which sends u to u^-1 and v to v^-1. If p(u,v) is in R then p.subsitutue(u,u^-1,v=v^-1) should work but sadly not: sage: p=2*u**-1*v**-1+u*v sage: p.substitute(u=u^-1,v=v^-1)

[sage-devel] Re: Can we require that the user has a recent enumitem LaTeX package?

2013-08-28 Thread Andrew Mathas
Hi Simon, Here is a quick hack: \documentclass{article} \makeatletter \newcounter{deeplistdepth} \setcounter{deeplistdepth}{0} \newenvironment{deeplist}{\addtocounter{deeplistdepth}{1} \@ifundefined{c@deeplistitem\alph{deeplistdepth}}{\newcounter{deeplistitem\alph{deeplistdepth}}}

[sage-devel] Re: Can we require that the user has a recent enumitem LaTeX package?

2013-08-28 Thread Andrew Mathas
ps. It seems easylist only allows five levels of lists, so maybe I'll have to write some latex... On Wednesday, 28 August 2013 16:12:50 UTC+2, Andrew Mathas wrote: > > > - Or should we rather find a way to create the docs such that nested >> classes in Sage do *not* resul

[sage-devel] Re: Can we require that the user has a recent enumitem LaTeX package?

2013-08-28 Thread Andrew Mathas
> - Or should we rather find a way to create the docs such that nested > classes in Sage do *not* result in nested lists in the docs? Then we > wouldn't need to worry about LaTeX's restrictions... > > Hi Simon, I don't think that writing a list environment which allows greater nesting wo

[sage-devel] Re: Should ClasscallMetaclass do a consistency test?

2013-07-31 Thread Andrew Mathas
On Tuesday, 30 July 2013 14:18:28 UTC+2, Simon King wrote: > > Hi all, > > On 2013-07-29, Simon King > wrote: > > After all, we have a class, and we call the class as if to create an > > instance---but what we get is in fact not an instance of this class, but > > is instance of a *totally* di

[sage-devel] Re: Should ClasscallMetaclass do a consistency test?

2013-07-31 Thread Andrew Mathas
Hi Simon, > > Partition and PartitionTuple are not closely related. They are in fact > *totally* > different: > There are two quite different and quite valid comparisons here: mathematical and implementation. The main point that I was making is mathematical. Of course, you are saying tht if

[sage-devel] Re: Should ClasscallMetaclass do a consistency test?

2013-07-28 Thread Andrew Mathas
On Sunday, 28 July 2013 19:56:02 UTC+2, Simon King wrote: > > Am Sonntag, 28. Juli 2013 14:23:39 UTC+2 schrieb Simon King: >> >> It turns out that a lot of stuff in sage.combinat breaks. Apparently >> some people really want that if C is a class then C(*args,**kwds) is not >> an instance of thi

[sage-devel] Re: The 2013 Spies Prize winner is...

2013-06-23 Thread Andrew Mathas
Dear Jeroen, Congratultions. Definitely extremely well-deservered! Andrew -- 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.com.

Re: [sage-devel] Re: find_stat in Sage, the combinatorial_map decorator and its consequences

2013-06-19 Thread Andrew Mathas
I agree with Nathan's comments: if the find_stat decorators are adding significant overhead then they need to be looked at. As Volker said, however, before we start this conversation we should profile them to find out what the cost is (unlike Floent I would not find a 10% slow-down acceptable:)

[sage-devel] fixdoctests is broken in 5.9

2013-05-06 Thread Andrew Mathas
The improvements to the doctesting framework made by trac:12415, which were merged in 5.9, have broken the fixdoctests command line option in sage: prompt> sage -fixdoctests partition.py Traceback (most recent call last): File "/usr/local/src/s

[sage-devel] Re: Global options

2013-04-14 Thread Andrew Mathas
On Saturday, 13 April 2013 20:16:37 UTC+10, Volker Braun wrote: > So whats global in GlobalOptions? Presumably the instance options are the > same as the global options, just with a different scope? Is that > implemented? > Yes, you are right, there is nothing intrinsically global in them an

[sage-devel] Re: Global options

2013-04-12 Thread Andrew Mathas
On Friday, 12 April 2013 19:23:31 UTC+10, Volker Braun wrote: > > It would be nice if we could implement the syntax in the IPython > configuration stuff: > > A.options.foobar = 1 > > in addition to > > A.options(foobar=1) > > This would require us to rename the existing methods of Global

[sage-devel] Global options

2013-04-11 Thread Andrew Mathas
Dear Developers, As part of the clean up of the partitions code by Travis (Trac 13605) I implemented a generic options interface in sage which can be used for controlling (global) options for sage objects. See sage.structure.global_options for d

[sage-devel] LaurentPolynomials appears to be horribly broken!?

2013-02-13 Thread Andrew Mathas
I was just discussing this with a few people at the sage days at ICERM and it seems that LaurentPolynomials are horribly broken. Consider the following in 5.6: sage: q in R True sage: q^-1 in R True sage: 1/q in R False sage: ~q in R False sage: 1/q==q^-1 True sage: 1/q is q^-1 False sage: (1/q

[sage-devel] Re: [sage-combinat-devel] Re: Permutations... again.

2013-02-09 Thread Andrew Mathas
Hi Sébastien, I have been active in the sage-combinat queue for a little over a year. Here is my impression of how the sage-combinat queue works. It could be that how I think that the queue works, or how it is supposed to work, is just wrong but to summarise I think that the queue currently wor

[sage-devel] Re: what about adding trac roles for oeis and arxiv

2013-01-24 Thread Andrew Mathas
+2 Yes, definitely a good idea. Another possiblity would be :msn: for matscinet links, but this has the downside of not being accessible to everybody. Andrew On Thursday, 24 January 2013 23:15:26 UTC+11, Frédéric Chapoton wrote: > > Hello everybody, > > What do you think of the idea of adding

[sage-devel] Re: Messing up hash and cmp with UniqueRepresentation

2013-01-23 Thread Andrew Mathas
> At #13991, we try to fix a speed regression that comes from the fact > that Partitions(n) is not a unique parent > Hi Simon, I'm currently reviewing a patch #13605 by Travis Scrimshaw which, among other things, makes Partitions into unique parents. Andrew -- You received this message bec

Re: [sage-devel] Re: Latex in sage

2013-01-16 Thread Andrew Mathas
> > Andrew, does this mean, that your patch when ready will actually take care > of the tickets mentioned? > > Not really. What I have been doing provides a different way of displaying tables from inside sage (rather than specifically from the notebook). What I am doing provides a different w

[sage-devel] Re: Latex in sage

2013-01-15 Thread Andrew Mathas
> In the Sage notebook, all LaTeX output is typeset in math mode, via > MathJax. If you want to use LaTeX code which relies on plain text, it may > not be typeset correctly. > > Thanks for confirming this John. I had trolled through the code this morning and thought that this was the case, so

[sage-devel] Latex in sage

2013-01-14 Thread Andrew Mathas
Almost every object in sage can return latex output. I think that the answer is no, but is there anyway to tell whether the latex output should be typeset in math-mode or as plain text? For example, sage: latex(CyclicPermutationGroup(5).character_table()) \left(\begin{array}{r} 1 & 1 & 1 &

[sage-devel] Re: [sage-combinat-devel] Re: problems with documentation build

2012-12-13 Thread Andrew Mathas
I am using macosx 10.7.5 and firefox 17.0.1 and the page displays properly for me. So the problem is also operating system dependent. Andrew -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To post to this group, send email to sage-devel@googlegr

[sage-devel] Re: Displaying data in sage

2012-12-09 Thread Andrew Mathas
> how about launching a webserver in Python and serving your tables as webpages? > This is not hard to set up, IMHO... Yes, this would certainly work. My question was more whether this functionality already existed in sage, for example via the notebook. On Monday, 10 December 2012 03:02:56 UT

[sage-devel] Displaying data in sage

2012-12-08 Thread Andrew Mathas
Hello Sage gurus! Would some one mind giving me some quick pointers to the different ways that sage can display information. I know that sage can display graphs but etc presumably this is done with an external call to something like gnuplot. The reason that I ask is that I am playing with som

[sage-devel] Re: [sage-combinat-devel] Re: Permutations... again.

2012-11-24 Thread Andrew Mathas
> YES, but if you were working with the Sage TRAC server the patches would > HAVE to be finalised. Please please, that's the whole point ! > > Nathan, I think that this is the whole point that you are not seeing: we do work with sage and we do use trac. Extensively. Personally, I want my patch

[sage-devel] Re: [sage-combinat-devel] Re: Permutations... again.

2012-11-23 Thread Andrew Mathas
Hi Nathan, I'm sure that I should drop this but... I don't know. People usually pay attention to the code they wrote even much > later. I still write to Robert Miller when I have questions on the graph > backends, and I like to have his advice on Sage things from time to time. When ever anyt

[sage-devel] Re: [sage-combinat-devel] Re: Permutations... again.

2012-11-23 Thread Andrew Mathas
H Nathan, I share your frustrations. I think we all do, to some extent. It would be very nice if all of these problems, major an minor, could be fixed but the reality is that until some one cares enough about a particular problem then, as you say, it isn't going to happen. I think this

[sage-devel] To lazy_import or not to lazy_import

2012-11-18 Thread Andrew Mathas
Are there clear-cut guidelines somewhere on when to use import and when to use lazy_import? If it was always better to use lazy_import then I would have thought that that all of the all.py files would have been changed so that they use lazy_import. Is there a reason why lazy_import is used so r

Re: [sage-devel] Re: Removing pickles from the pickle jar?

2012-11-01 Thread Andrew Mathas
I have finalised my pickle jar documentation patch http://trac.sagemath.org/sage_trac/ticket/5294 on trac and changed its' status to *needs review*. Can those people who were worried that explaining in the documentation how the pickle_jar works please check to see whether they are happy with t

[sage-devel] Broken links in sage documentation

2012-10-24 Thread Andrew Mathas
The index files for most (all?) of the html versions of the sage manuals contain a typo for the link under the sage logo: they point to ../#index.html rather than ../index.html. This is usually fine when the manual pages are accessed as web pages (for example from http://www.sagemath.org/doc) b

Re: [sage-devel] Re: Removing pickles from the pickle jar?

2012-10-18 Thread Andrew Mathas
I have just uploaded a patch to http://trac.sagemath.org/sage_trac/ticket/5294 which adds documentation about the pickle_jar to the reference manual. (Thanks Florent for creating the ticket, year ago). Possibly something should also go in the developers guide. The main aim of the patch is to t

[sage-devel] Re: Removing pickles from the pickle jar?

2012-10-17 Thread Andrew Mathas
I guess my point is that even though pickles are a python thing, maintaining the pickle_jar itself is a sage thing and it should be documented what it does and how it is supposed to work (I'll take on board your anticipated hint about improving documentation:). It's a little ironic, but looking

[sage-devel] Re: Removing pickles from the pickle jar?

2012-10-17 Thread Andrew Mathas
One of the things that I like about sage is python, but what I like least about it is documentation, which is often missing or inadequate. Because there is no documentation about the pickle_jar, and how it should be used, I wasted 4+ hours on this. First I was told to replace the broken pickles

[sage-devel] Re: Removing pickles from the pickle jar?

2012-10-17 Thread Andrew Mathas
Excellent. Thank you Nils. That solves my problem. I'd worked out that the problem is caused by the fact Tableau_class is a subclass of CombinatorialObject whereas Tableau also inherits from Element. It is the Element.__setstate__ that is causing the problem. I should be able to sort it out now

[sage-devel] Re: Removing pickles from the pickle jar?

2012-10-16 Thread Andrew Mathas
On Tuesday, 16 October 2012 22:00:13 UTC+11, Volker Braun wrote: > > I'm confused here, the workflow should be deprecate -> wait one year -> > remove deprecated functionality. But you are saying you want to remove the > pickles at the beginning of the deprecation period? That sounds wrong. > > Hi

[sage-devel] Re: Removing pickles from the pickle jar?

2012-10-16 Thread Andrew Mathas
> I also agree it may not be a sensible choice to remove old pickles (the > point is to be sure they can still be loaded! so removing them to pass > doctests is a bad fix in my opinion), nor to keep the ones from sage 0.4 > whose class got deprecated in sage 1.1. > Just for the record the pi

[sage-devel] Re: Removing pickles from the pickle jar?

2012-10-15 Thread Andrew Mathas
Hi Simon, > > If I understand correctly, we are talking here about "modifying" in the > sense of "removing stuff". IMHO, it would be totally > against the purpose of the pickle jar, if we would encourage (or just > explain how) to remove stuff from the pickle jar. > > If the pickle jar doc te

Re: [sage-devel] Removing pickles from the pickle jar?

2012-10-15 Thread Andrew Mathas
I was the person who updated the pickle jar in trac 9265. Like Jeroen, "I personally don't know much about the pickle jar in Sage", but I was given some instructions about what to do which came down to set SAGE_PICKLE_JAR,untar the pickle jar and copy the new pickles in, and tar the jar up agai

[sage-devel] Re: number_of_partitions

2012-09-21 Thread Andrew Mathas
On Friday, 21 September 2012 14:09:19 UTC+10, Dima Pasechnik wrote: > > This decreases the pedagogical value of Sage code for no good reason. > > Hi Dima, If you reread my post you will see that ALL of the current functionality of number_of_partitions is still supported by Partitions(*).cardin

[sage-devel] number_of_partitions

2012-09-20 Thread Andrew Mathas
Among other things, the patch #13072cleans up sage.combinat.partition. I would like some input as to should happen to the function number_of_partitions. Arguably, if you want to compute the number of partitions of some integer in sage then you s

[sage-devel] Re: WARNING: Configuration file ipythonrc not found. Ignoring request.

2012-09-11 Thread Andrew Mathas
Sorry, please ignore this: I deleted my ~/.sage directory and now all is good. Andrew On Wednesday, 12 September 2012 07:21:30 UTC+10, Andrew Mathas wrote: > > Hi all, > > Last night sage stopped worked for me giving the error about not finding > ipythonrc. See the full err

[sage-devel] WARNING: Configuration file ipythonrc not found. Ignoring request.

2012-09-11 Thread Andrew Mathas
Hi all, Last night sage stopped worked for me giving the error about not finding ipythonrc. See the full error message that happens when I start up sage below. This is not a sage issue directly as it it uniformly affecting a freshly installed version of sage-5.3 as well as older installations

Re: [sage-devel] Re: Patchbot applying an unwanted patch

2012-09-02 Thread Andrew Mathas
I've found that it is continually necessary to repost the apply directives for the patchbot. If I don't do this then whenever I update the patches in trac then the patchbot will attempt to apply everything -- I found this to be necessary with the trac tickets #9265 and #13072. If Franco's sugg

[sage-devel] Re: Renaming/deprecating a class

2012-08-16 Thread Andrew Mathas
The best solution that I found is to write wrappers like the following: def Tableaux_n(*args, **kargs): """ EXAMPLES:: sage: sage.combinat.tableau.Tableaux_n(3) doctest:1: DeprecationWarning: this class is deprecated. Use Tableaux_size instead See http://trac.sage

[sage-devel] Re: Renaming/deprecating a class

2012-08-15 Thread Andrew Mathas
an printing the deprecation error. Can anyone see a better way to do this? It really shouldn't be this hard! Andrew On Thursday, 16 August 2012 08:49:18 UTC+10, Andrew Mathas wrote: > > Thanks Simon. Actually, this was the first thing that I tried: > >

[sage-devel] Re: Renaming/deprecating a class

2012-08-15 Thread Andrew Mathas
of this deprecated function can not be determined This is a little strange a both the deprecated function alias and the new class have __name__ attributes... Andrew On Thursday, 16 August 2012 01:51:43 UTC+10, Simon King wrote: > > Hi Andrew, > > On 2012-08-15, Andrew Math

[sage-devel] Renaming/deprecating a class

2012-08-15 Thread Andrew Mathas
Hi, I want to rename a class, and deprecate the old class name, but it seems that this isn't so easy within the deprecation framework. I tried: sage: old_class = deprecated_function_alias(123456,new_class.__init__) and some variations on this but they all gave the error AttributeError: The na

[sage-devel] Sage whitespace policy

2012-08-13 Thread Andrew Mathas
I have some patches on trac and the patchbot is failing them with white space errors with comments like Trailing whitespace inserted on 73 non-empty lines. I used to have my editor set to automatically kill off all trailing white space but I found that this led to constant conflicts when mergin

[sage-devel] Doc test failures

2012-07-24 Thread Andrew Mathas
Hi! In a patch that I am writing I am getting doctest failures from sage but when I run the code "by hand" it works. Specifically, inside sage I get see the following behaviour sage: res=ResidueSequence(3,[0,0,1], [0,1,2]); res Residue sequence (0,1,2) of level 3 sage:

[sage-devel] Re: help wanted with braid groups

2012-06-07 Thread Andrew Mathas
On Friday, June 8, 2012 1:40:05 AM UTC+6, mmarco wrote: > > Chevie does have some of this (at least it has something similar to a > left normal form, which is the basis for the rest). It can compute the > left normal form faster than my python code, but it has some > drawbacks: it runs on gap3

Re: [sage-devel] Bug in base_ring?

2012-04-23 Thread Andrew Mathas
On Fri, Apr 20, 2012 at 8:02 AM, Andrew Mathas wrote: > > The following snippet appears to exhibit a minor bug in base_ring: > > > > sage: F.=FiniteField(5^6) > > sage: z.base_ring() > > Finite Field of size 5 > > sage: a.parent() > > Finite Field i

[sage-devel] Bug in base_ring?

2012-04-19 Thread Andrew Mathas
The following snippet appears to exhibit a minor bug in base_ring: sage: F.=FiniteField(5^6) sage: z.base_ring() Finite Field of size 5 sage: a.parent() Finite Field in z of size 5^6 According to the documentation, base_ring() "Returns the base ring of this element's parent (if that makes sense)

[sage-devel] Re: Sage on lion

2011-10-26 Thread Andrew Mathas
Thanks John. I didn't realise that this worked. Cheers, Andrew On Oct 26, 10:56 am, John H Palmieri wrote: > On Tuesday, October 25, 2011 3:52:24 PM UTC-7, Andrew Mathas wrote: > > > Hi All, > > > Is there an educated guess as to when/if sage will be ported to lion

[sage-devel] Sage on lion

2011-10-25 Thread Andrew Mathas
Hi All, Is there an educated guess as to when/if sage will be ported to lion? I foolishly upgraded when it came out and have been unable to use sage since... Cheers, Andrew -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to s

[sage-devel] Re: Depreciating functions

2010-06-20 Thread Andrew Mathas
20, 7:45 pm, Florent Hivert wrote: >       Hi Andrew, > > > > On Sun, Jun 20, 2010 at 10:26:48AM -0700, Andrew Mathas wrote: > > Our current way of depreciating functions requires quite a bit of > > surgery on the departing functions. If we use decorations instead we &

[sage-devel] Re: Depreciating functions

2010-06-20 Thread Andrew Mathas
On Jun 20, 8:23 pm, Tom Boothby wrote: > Important quibble: the word is deprecate. Only in north America! -- 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 th

[sage-devel] Depreciating functions

2010-06-20 Thread Andrew Mathas
Our current way of depreciating functions requires quite a bit of surgery on the departing functions. If we use decorations instead we could streamline this so that functions could be depreciated by just putting a @depreciation line before their definition. A rough model of what I am thinking of i

[sage-devel] Problem in upgrading sage

2009-09-17 Thread Andrew Mathas
Hello! I have just been trying to upgrade sage-combinat (on a macbook pro running 10.6.1 of macosx) with sage -combinat upgrade and run into a problem because as part of the SQLAlchemy upgrade sage wants to download http://cheeseshop.python.org/packages/2.6/s/setuptools/setuptools-0.6c3-

[sage-devel] Re: Algebras with several bases, aka abstract parents with several concrete representations

2009-03-13 Thread Andrew Mathas
Dear David and Nicolas, On Mar 14, 9:42 am, David Kohel wrote: > I would suggest that the choice of basis (or generators) should > be an intrinsic part of the algebra's representation and interface. > Different representations imply different (but possibly equal, even > canonically equal) algebr

[sage-devel] Re: Algebras with several bases, aka abstract parents with several concrete representations

2009-03-13 Thread Andrew Mathas
Dear David and Nicolas, On Mar 14, 9:42 am, David Kohel wrote: > I would suggest that the choice of basis (or generators) should > be an intrinsic part of the algebra's representation and interface. > Different representations imply different (but possibly equal, even > canonically equal) algebr