[sage-combinat-devel] Re: sage combinat on 5.5

2013-01-19 Thread Hugh Thomas

Hi!

The short explanation of the problem is that 
sage/combinat/some_hopf_algebras/all.py was not importing parking functions 
from the right place.  It should have been using 
sage.combinat.parking_functions.  I have added a patch 
temporary_parking_import_fix-ht.patch which fixes this.  Jean-Baptiste, 
please feel free to fix the problem however you like and delete my patch.  
Martin, sage should now run okay with the queue installed. 

I had trouble replicating this issue, and for a reason that is a bit 
interesting (I think).  

The point is that the import statement used to be right; the parking 
functions files moved.  And by default, sage does not clean up the old .py 
and .pyc files from the old compilations, so they are still sitting in  
local/lib/python2.7/site-packages/sage/combinat/some_hopf_algebra, and as a 
result, sage is willing to import from them.  If you want sage to remove 
them when doing the rebuild, you have to tell it to.  See #5977.  
 
cheers,

Hugh

On Saturday, January 19, 2013 10:29:20 AM UTC-4, Martin wrote:
>
> Hi there, 
>
> I just installed sage 5.5 from source and then did 
>
> sage -combinat install 
>
> But now I get what's reproduced below. 
>
> :-( What should I do?  (upgrade does not work, since sage doesn't start) 
>
> Martin 
>
> rubey@convex3:~/sage-5.5$ sage 
> -- 
> | Sage Version 5.5, Release Date: 2012-12-22 | 
> | Type "notebook()" for the browser-based notebook interface.| 
> | Type "help()" for help.| 
> -- 
> --- 
>
> ImportError   Traceback (most recent call 
> last) 
>
> /home/rubey/sage-5.5/local/lib/python2.7/site-packages/IPython/ipmaker.pyc 
> in force_import(modname, force_reload) 
>  61 reload(sys.modules[modname]) 
>  62 else: 
> ---> 63 __import__(modname) 
>  64 
>  65 
>
> /home/rubey/sage-5.5/local/bin/ipy_profile_sage.py in () 
>   5 preparser(True) 
>   6 
> > 7 import sage.all_cmdline 
>   8 sage.all_cmdline._init_cmdline(globals()) 
>   9 
>
> /home/rubey/sage-5.5/local/lib/python2.7/site-packages/sage/all_cmdline.py 
> in () 
>  12 try: 
>  13 
> ---> 14 from sage.all import * 
>  15 from sage.calculus.predefined import x 
>  16 preparser(on=True) 
>
> /home/rubey/sage-5.5/local/lib/python2.7/site-packages/sage/all.py in 
> () 
> 106 
> 107 from sage.coding.all import * 
> --> 108 from sage.combinat.all   import * 
> 109 
> 110 from sage.lfunctions.all import * 
>   
> /home/rubey/sage-5.5/local/lib/python2.7/site-packages/sage/combinat/all.py 
> in () 
> 152 from sidon_sets import sidon_sets 
> 153 
> --> 154 from some_hopf_algebra.all import * 
> 155 
> 156 #Affine Permutation Group(s) 
>   
> /home/rubey/sage-5.5/local/lib/python2.7/site-packages/sage/combinat/some_hopf_algebra/all.py
>  
>
> in () 
>   1 
> > 2 from packed_words import PackedWord, PackedWords 
>   3 from parking_functions import ParkingFunction, ParkingFunctions 
>   4 
>   5 from fqsym import FreeQuasisymmetricFunctions 
>   6 FQSym = FreeQuasisymmetricFunctions 
>   
> ImportError: No module named parking_functions 
> Error importing ipy_profile_sage - perhaps you should run %upgrade? 
> WARNING: Loading of ipy_profile_sage failed. 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sage-combinat-devel/-/ESt9Q-O9CR8J.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



[sage-combinat-devel] Re: Problem with the nilcoxeter algebra

2013-01-19 Thread tom d
Ok, thanks; I'll just stick to working lower in the queue for now then.

On Saturday, January 19, 2013 3:28:20 PM UTC+3, tom d wrote:
>
> There's been a change to the init function for the Iwahori Hecke Algebra 
> that causes the NilCoxeterAlgebra to fail.  I _think_ this is happening in 
> the affine_iwahori_hecke_algebras.patch; the nilcoxeter algebra is still 
> working fine with combinat unapplied.  
>
> There's an extra parameter (omega) in the IwahoriHecke Algebra now, and 
> since the NilCoxeter is calling the __init__ function directly, it's 
> apparently expected to provide a value for this new parameter.  I'm not 
> terribly sure if it's better to change the IHA constructor to not expect 
> the omega, or to change the Nilcoxeter to provide a value.
>
> Any thoughts?
>
> sage: W=WeylGroup(['A',5,1])
> sage: NilCoxeterAlgebra(W)
> ---
> TypeError Traceback (most recent call last)
>
> /home/kaibutsu/ in ()
>
> /home/kaibutsu/sage-5.5/local/lib/python2.7/site-packages/sage/misc/classcall_metaclass.so
>  
> in sage.misc.classcall_metaclass.ClasscallMetaclass.__call__ 
> (sage/misc/classcall_metaclass.c:991)()
>
> /home/kaibutsu/sage-5.5/local/lib/python2.7/site-packages/sage/misc/cachefunc.so
>  
> in sage.misc.cachefunc.WeakCachedFunction.__call__ 
> (sage/misc/cachefunc.c:5077)()
>
> /home/kaibutsu/sage-5.5/local/lib/python2.7/site-packages/sage/structure/unique_representation.pyc
>  
> in __classcall__(cls, *args, **options)
> 464 True
> 465 """
> --> 466 instance = typecall(cls, *args, **options)
> 467 assert isinstance( instance, cls )
> 468 if instance.__class__.__reduce__ == 
> UniqueRepresentation.__reduce__:
>
>
>
> /home/kaibutsu/sage-5.5/local/lib/python2.7/site-packages/sage/misc/classcall_metaclass.so
>  
> in sage.misc.classcall_metaclass.typecall 
> (sage/misc/classcall_metaclass.c:1350)()
>
> /home/kaibutsu/sage-5.5/local/lib/python2.7/site-packages/sage/algebras/nil_coxeter_algebra.pyc
>  
> in __init__(self, W, base_ring, prefix)
>  63 self._base_ring = base_ring
>  64 self._cartan_type = W.cartan_type()
> ---> 65 IwahoriHeckeAlgebraT.__init__(self, W, 0, 0, base_ring, 
> prefix=prefix)
>  66 
>  67 def _repr_(self):
>
> TypeError: __init__() takes exactly 7 arguments (6 given)
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sage-combinat-devel/-/yXgzT3koFCAJ.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



Re: [sage-combinat-devel] Problem with the nilcoxeter algebra

2013-01-19 Thread Anne Schilling
Hi Tom,

Dan Bump, Dan Orr, Mark Shimozono and I will work on this patch during the
Sage Days at ICERM. It is not yet close to its final form, so just disregard
it for the moment. Everything is likely to change soon!

Best,

Anne

On 1/19/13 4:28 AM, tom d wrote:
> There's been a change to the init function for the Iwahori Hecke Algebra that 
> causes the NilCoxeterAlgebra to fail.  I _think_ this is happening in the 
> affine_iwahori_hecke_algebras.patch; the
> nilcoxeter algebra is still working fine with combinat unapplied. 
> 
> There's an extra parameter (omega) in the IwahoriHecke Algebra now, and since 
> the NilCoxeter is calling the __init__ function directly, it's apparently 
> expected to provide a value for this new
> parameter.  I'm not terribly sure if it's better to change the IHA 
> constructor to not expect the omega, or to change the Nilcoxeter to provide a 
> value.
> 
> Any thoughts?
> 
> sage: W=WeylGroup(['A',5,1])
> sage: NilCoxeterAlgebra(W)
> ---
> TypeError Traceback (most recent call last)
> 
> /home/kaibutsu/ in ()
> 
> /home/kaibutsu/sage-5.5/local/lib/python2.7/site-packages/sage/misc/classcall_metaclass.so
>  in sage.misc.classcall_metaclass.ClasscallMetaclass.__call__ 
> (sage/misc/classcall_metaclass.c:991)()
> 
> /home/kaibutsu/sage-5.5/local/lib/python2.7/site-packages/sage/misc/cachefunc.so
>  in sage.misc.cachefunc.WeakCachedFunction.__call__ 
> (sage/misc/cachefunc.c:5077)()
> 
> /home/kaibutsu/sage-5.5/local/lib/python2.7/site-packages/sage/structure/unique_representation.pyc
>  in __classcall__(cls, *args, **options)
> 464 True
> 465 """
> --> 466 instance = typecall(cls, *args, **options)
> 467 assert isinstance( instance, cls )
> 468 if instance.__class__.__reduce__ == 
> UniqueRepresentation.__reduce__:
> 
> 
> 
> /home/kaibutsu/sage-5.5/local/lib/python2.7/site-packages/sage/misc/classcall_metaclass.so
>  in sage.misc.classcall_metaclass.typecall 
> (sage/misc/classcall_metaclass.c:1350)()
> 
> /home/kaibutsu/sage-5.5/local/lib/python2.7/site-packages/sage/algebras/nil_coxeter_algebra.pyc
>  in __init__(self, W, base_ring, prefix)
>  63 self._base_ring = base_ring
>  64 self._cartan_type = W.cartan_type()
> ---> 65 IwahoriHeckeAlgebraT.__init__(self, W, 0, 0, base_ring, 
> prefix=prefix)
>  66
>  67 def _repr_(self):
> 
> TypeError: __init__() takes exactly 7 arguments (6 given)
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "sage-combinat-devel" group.
> To view this discussion on the web visit 
> https://groups.google.com/d/msg/sage-combinat-devel/-/qzJfyqJpvlkJ.
> To post to this group, send email to sage-combinat-devel@googlegroups.com.
> To unsubscribe from this group, send email to 
> sage-combinat-devel+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/sage-combinat-devel?hl=en.

-- 
Anne Schilling  E-mail: a...@math.ucdavis.edu
Professor   Web:http://www.math.ucdavis.edu/~anne
Department of Mathematics   Office: MSB 3222
University of CaliforniaPhone:  (530) 554 2326
One Shields Ave Fax:(530) 752 6635
Davis, CA 95616

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



[sage-combinat-devel] sage combinat on 5.5

2013-01-19 Thread Martin Rubey
Hi there,

I just installed sage 5.5 from source and then did

sage -combinat install

But now I get what's reproduced below.

:-( What should I do?  (upgrade does not work, since sage doesn't start)

Martin

rubey@convex3:~/sage-5.5$ sage 
--
| Sage Version 5.5, Release Date: 2012-12-22 |
| Type "notebook()" for the browser-based notebook interface.|
| Type "help()" for help.|
--
---
ImportError   Traceback (most recent call last)

/home/rubey/sage-5.5/local/lib/python2.7/site-packages/IPython/ipmaker.pyc
in force_import(modname, force_reload)
 61 reload(sys.modules[modname])
 62 else:
---> 63 __import__(modname)
 64 
 65 

/home/rubey/sage-5.5/local/bin/ipy_profile_sage.py in ()
  5 preparser(True)
  6 
> 7 import sage.all_cmdline
  8 sage.all_cmdline._init_cmdline(globals())
  9 

/home/rubey/sage-5.5/local/lib/python2.7/site-packages/sage/all_cmdline.py
in ()
 12 try:
 13 
---> 14 from sage.all import *
 15 from sage.calculus.predefined import x
 16 preparser(on=True)

/home/rubey/sage-5.5/local/lib/python2.7/site-packages/sage/all.py in
()
106 
107 from sage.coding.all import *
--> 108 from sage.combinat.all   import *
109 
110 from sage.lfunctions.all import *
 
/home/rubey/sage-5.5/local/lib/python2.7/site-packages/sage/combinat/all.py in 
()
152 from sidon_sets import sidon_sets 
153 
--> 154 from some_hopf_algebra.all import * 
155 
156 #Affine Permutation Group(s) 
 
/home/rubey/sage-5.5/local/lib/python2.7/site-packages/sage/combinat/some_hopf_algebra/all.py
in () 
  1 
> 2 from packed_words import PackedWord, PackedWords 
  3 from parking_functions import ParkingFunction, ParkingFunctions 
  4 
  5 from fqsym import FreeQuasisymmetricFunctions 
  6 FQSym = FreeQuasisymmetricFunctions 
 
ImportError: No module named parking_functions 
Error importing ipy_profile_sage - perhaps you should run %upgrade? 
WARNING: Loading of ipy_profile_sage failed.

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



Re: [sage-combinat-devel] Re: k-Schur functions and affine Schubert calculus

2013-01-19 Thread Anne Schilling
On 1/19/13 4:38 AM, Dima Pasechnik wrote:
> On 2013-01-19, tom d  wrote:
>> --=_Part_2034_1229983.1358597739032
>> Content-Type: text/plain; charset=ISO-8859-1
>>
>> Fantastic!  Good to know there's a solid book I can point people to now for 
>> some background!
>>
>> On Thursday, January 17, 2013 6:24:05 AM UTC+3, Anne Schilling wrote:
>>>
>>> Hi All! 
>>>
>>> Mike just posted our book on $k$-Schur functions and affine Schubert 
>>> calculus 
>>> on the arXiv ( http://arxiv.org/abs/1301.3569 ). It contains many Sage 
>>> examples. Thank you to everyone who helped to make this possible! 
> 
> It's a very interesting book! 
> By the way, is there a way to get the Sage code in the book
> without cutting/pasting from pdf (or TeX source)?

Thank you. Yes, it is in sage/tests/book_schilling_zabrocki_kschur_primer.py

Best wishes,

Anne

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



[sage-combinat-devel] Re: k-Schur functions and affine Schubert calculus

2013-01-19 Thread Dima Pasechnik
On 2013-01-19, tom d  wrote:
> --=_Part_2034_1229983.1358597739032
> Content-Type: text/plain; charset=ISO-8859-1
>
> Fantastic!  Good to know there's a solid book I can point people to now for 
> some background!
>
> On Thursday, January 17, 2013 6:24:05 AM UTC+3, Anne Schilling wrote:
>>
>> Hi All! 
>>
>> Mike just posted our book on $k$-Schur functions and affine Schubert 
>> calculus 
>> on the arXiv ( http://arxiv.org/abs/1301.3569 ). It contains many Sage 
>> examples. Thank you to everyone who helped to make this possible! 

It's a very interesting book! 
By the way, is there a way to get the Sage code in the book
without cutting/pasting from pdf (or TeX source)?

Dmitrii
>>
>> Anne 
>>
>>  
>>
>> Thomas Lam, Luc Lapointe, Jennifer Morse, Anne Schilling, Mark Shimozono, 
>> Mike Zabrocki 
>> k-Schur functions and affine Schubert calculus 
>> (Submitted on 16 Jan 2013) 
>> http://arxiv.org/abs/1301.3569 
>>
>> This book is an exposition of the current state of research of affine 
>> Schubert calculus and $k$-Schur functions. This text is based on a series 
>> of lectures given at a workshop titled "Affine 
>> Schubert Calculus" that took place in July 2010 at the Fields Institute in 
>> Toronto, Ontario. The story of this research is told in three parts: 1. 
>> Primer on $k$-Schur Functions 2. Stanley symmetric 
>> functions and Peterson algebras 3. Affine Schubert calculus 
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



[sage-combinat-devel] Problem with the nilcoxeter algebra

2013-01-19 Thread tom d
There's been a change to the init function for the Iwahori Hecke Algebra 
that causes the NilCoxeterAlgebra to fail.  I _think_ this is happening in 
the affine_iwahori_hecke_algebras.patch; the nilcoxeter algebra is still 
working fine with combinat unapplied.  

There's an extra parameter (omega) in the IwahoriHecke Algebra now, and 
since the NilCoxeter is calling the __init__ function directly, it's 
apparently expected to provide a value for this new parameter.  I'm not 
terribly sure if it's better to change the IHA constructor to not expect 
the omega, or to change the Nilcoxeter to provide a value.

Any thoughts?

sage: W=WeylGroup(['A',5,1])
sage: NilCoxeterAlgebra(W)
---
TypeError Traceback (most recent call last)

/home/kaibutsu/ in ()

/home/kaibutsu/sage-5.5/local/lib/python2.7/site-packages/sage/misc/classcall_metaclass.so
 
in sage.misc.classcall_metaclass.ClasscallMetaclass.__call__ 
(sage/misc/classcall_metaclass.c:991)()

/home/kaibutsu/sage-5.5/local/lib/python2.7/site-packages/sage/misc/cachefunc.so
 
in sage.misc.cachefunc.WeakCachedFunction.__call__ 
(sage/misc/cachefunc.c:5077)()

/home/kaibutsu/sage-5.5/local/lib/python2.7/site-packages/sage/structure/unique_representation.pyc
 
in __classcall__(cls, *args, **options)
464 True
465 """
--> 466 instance = typecall(cls, *args, **options)
467 assert isinstance( instance, cls )
468 if instance.__class__.__reduce__ == 
UniqueRepresentation.__reduce__:



/home/kaibutsu/sage-5.5/local/lib/python2.7/site-packages/sage/misc/classcall_metaclass.so
 
in sage.misc.classcall_metaclass.typecall 
(sage/misc/classcall_metaclass.c:1350)()

/home/kaibutsu/sage-5.5/local/lib/python2.7/site-packages/sage/algebras/nil_coxeter_algebra.pyc
 
in __init__(self, W, base_ring, prefix)
 63 self._base_ring = base_ring
 64 self._cartan_type = W.cartan_type()
---> 65 IwahoriHeckeAlgebraT.__init__(self, W, 0, 0, base_ring, 
prefix=prefix)
 66 
 67 def _repr_(self):

TypeError: __init__() takes exactly 7 arguments (6 given)

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sage-combinat-devel/-/qzJfyqJpvlkJ.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.



[sage-combinat-devel] Re: k-Schur functions and affine Schubert calculus

2013-01-19 Thread tom d
Fantastic!  Good to know there's a solid book I can point people to now for 
some background!

On Thursday, January 17, 2013 6:24:05 AM UTC+3, Anne Schilling wrote:
>
> Hi All! 
>
> Mike just posted our book on $k$-Schur functions and affine Schubert 
> calculus 
> on the arXiv ( http://arxiv.org/abs/1301.3569 ). It contains many Sage 
> examples. Thank you to everyone who helped to make this possible! 
>
> Anne 
>
>  
>
> Thomas Lam, Luc Lapointe, Jennifer Morse, Anne Schilling, Mark Shimozono, 
> Mike Zabrocki 
> k-Schur functions and affine Schubert calculus 
> (Submitted on 16 Jan 2013) 
> http://arxiv.org/abs/1301.3569 
>
> This book is an exposition of the current state of research of affine 
> Schubert calculus and $k$-Schur functions. This text is based on a series 
> of lectures given at a workshop titled "Affine 
> Schubert Calculus" that took place in July 2010 at the Fields Institute in 
> Toronto, Ontario. The story of this research is told in three parts: 1. 
> Primer on $k$-Schur Functions 2. Stanley symmetric 
> functions and Peterson algebras 3. Affine Schubert calculus 
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-combinat-devel" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/sage-combinat-devel/-/LLwyTd4hb38J.
To post to this group, send email to sage-combinat-devel@googlegroups.com.
To unsubscribe from this group, send email to 
sage-combinat-devel+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/sage-combinat-devel?hl=en.