On Sat, 28 Apr 2007, Sven Schreiber wrote:
The one that is missing is py4gretl_vecdecomp, because I found
out that gretl seems to have a 4KB line length limit (regarding
script files invoked with the "run" command) -- which is
understandable, but sometimes breaks the (admittedly) clumsy way
how py4gretl_vecdecomp passes the calculated time series from
Numpy back to gretl in a temporary text file. Would that
limitation be easy to lift, or should I think of a way to work
around that?
In the context of saving a "session", if there are any saved
matrices gretl writes out a file called matrices.xml, which is
then re-loaded when the session is reopened.
I've now added this: you can load such a matrix file,
independently of the session mechanism, using the "include"
command. So, if I'm understanding the issue correctly, you should
be able to get the relevant data into gretl without super-long
command lines: get python to write out a matrices file then ask
gretl to "include" it. Here's an example of the format for such a
file:
<?xml version="1.0" encoding="UTF-8"?>
<gretl-matrices count="2">
<gretl-matrix name="A" rows="3" cols="3">
1 0 0
0 1 0
0 0 1
</gretl-matrix>
<gretl-matrix name="B" rows="2" cols="4">
1 2 3 4
4 3 2 1
</gretl-matrix>
</gretl-matrices>
Allin.