Re: [sage-combinat-devel] Combinatorica-like commands in Sage

2011-12-05 Thread Raymond N. Greenwell
OOPS! I knew I shouldn't have tried to squeeze in doing that before going to class. But yes, it now works! Thanks!!! On Mon, Dec 5, 2011 at 11:25 AM, Nathann Cohen wrote: > > Thanks for the suggestions. I'm on a Mac using OS 10.6.8. I created the > csv file using Excel and saving as a csv file.

Re: [sage-combinat-devel] Combinatorica-like commands in Sage

2011-12-05 Thread Nathann Cohen
> Thanks for the suggestions. I'm on a Mac using OS 10.6.8. I created the csv > file using Excel and saving as a csv file. Here's what happened when I tried > rU in place of r: You forgot the line that casts the values to integers Nathann -- You received this message because you are subsc

Re: [sage-combinat-devel] Combinatorica-like commands in Sage

2011-12-05 Thread Raymond N. Greenwell
Thanks for the suggestions. I'm on a Mac using OS 10.6.8. I created the csv file using Excel and saving as a csv file. Here's what happened when I tried rU in place of r: sage: cat "medalcomparison4.csv" 1,0,0,1,0sage: f = open("medalcomparison4.csv",'rU') sage: entries = map(lambda x:x.strip('\n')

Re: [sage-combinat-devel] Combinatorica-like commands in Sage

2011-12-05 Thread Lukáš Lánský
Hi, this is obviously a problem with the system-specific line-ending characters. What happens if you try to replace open("medalcomparison4.csv",'r') with open("medalcomparison4.csv","rU") ? Have a nice day. Lukáš Lánský. Dne 5.12.2011 16:19, Raymond N. Greenwell napsal(a): This is getting war

Re: [sage-combinat-devel] Combinatorica-like commands in Sage

2011-12-05 Thread Nicolas M. Thiery
On Mon, Dec 05, 2011 at 10:19:53AM -0500, Raymond N. Greenwell wrote: >This is getting warmer, but something must be different about my csv file. >It appears to me to contain the following: > > 0 0 0 0 0 > 1 0 0

Re: [sage-combinat-devel] Combinatorica-like commands in Sage

2011-12-05 Thread Raymond N. Greenwell
This is getting warmer, but something must be different about my csv file. It appears to me to contain the following: 0 0 0 0 0 1 0 0 1 0 1 1 0 1 1 1 0 0 0 0 1 0 0 1 0 Here's what Sage does: sage: cat "medalcomparison4.csv" 1,0,0,1,0sage: f = open("medalcomparison4.csv",'r') sage: entries = m