Hi Simon,
Simon King wrote:
> Is there a faster way to read and evaluate a large python code
> block than sage.repl.load.load?
I think %runfile is somewhat faster, though not exactly fast.
--
Marc
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group
On Monday, September 18, 2017 at 6:15:09 AM UTC-7, Simon King wrote:
>
>
> OK, the replies people gave strongly indicate that it would be a bad idea
> to try to read the text file directly into Sage. So, I should keep using
> libgap to read the file, followed by a translation (of course using
>
Hi all!
On 2017-09-18, Dima Pasechnik wrote:
> loading Python/Sage code is slow. Surely it should be possible to load
> libGAP data,
> and use it to create the necessary Python data in memory.
> In particular I suppose you want to bypass Sage generic matrices, and
> directly build the matrices
On Sunday, September 17, 2017 at 10:57:18 AM UTC+1, Simon King wrote:
>
> Hi Dima,
>
> On 2017-09-17, Dima Pasechnik > wrote:
> > Isn't it what pickle/cPickle is for?
>
> I don't want to store data, I want to read them. And I am not the
> one who stored them. So, I have to take the textfiles
Hi,
Le 17/09/2017 à 11:56, Simon King a écrit :
> On 2017-09-17, Dima Pasechnik wrote:
>> Isn't it what pickle/cPickle is for?
>
> I don't want to store data, I want to read them. And I am not the
> one who stored them. So, I have to take the textfiles as I get
> them.
You could have the textf
Hi Dima,
On 2017-09-17, Dima Pasechnik wrote:
> Isn't it what pickle/cPickle is for?
I don't want to store data, I want to read them. And I am not the
one who stored them. So, I have to take the textfiles as I get
them.
Cheers,
Simon
--
You received this message because you are subscribed to
On Saturday, September 16, 2017 at 10:13:57 AM UTC+1, Simon King wrote:
>
> Hi!
>
> I have a large file (2.7*10^6 lines, 204.5*10^6 bytes) of code
> that defines a python dict, some dict values are matrices
> of dimension roughly 800x1200 over GF(8), some dict values are
> other dicts.
>
> P
Hi John,
On 2017-09-16, John Cremona wrote:
> When I read in files containing a lot of data I don't format the files
> to be python code but just data, then write a python function to parse
> the input.
I tried that, and it is of course no problem to iterate over the matrix
entries defined in th
Hi Thierry,
On 2017-09-16, Thierry wrote:
> could you please give us access to the file (or a sample of it), so that
> we understand how it looke like ?
Here is my smallest example (in gap-readable format):
basicalg:=rec(
group := "A5",
generators := [ "1a", "1b", "1a1b1", "1b1a1" ],
npim