On Tue, 20 Feb 2018, Sven Schreiber wrote:
Am 19.02.2018 um 21:14 schrieb Allin Cottrell:
> disk space, it will slow down the data transfer. In an effort to speed it
> up I've also implemented support for binary-format matrices.
I was able to test now, but there is a new Windows-specific bug in the
gretl_export function in gretl_io.py.
The line:
f.write('gretl_binary_matrix')
doesn't work on Windows with a binary-mode file. It needs to be either:
f.write(b'gretl_binary_matrix')
or:
f.write('gretl_binary_matrix'.encode('utf-8'))
To be honest, I'm not sure what the respective drawbacks of the two solutions
are, or whether there might be a Python2 vs. Python3 issue. But I think both
should work on *nix as well.
Thanks. I've gone with
f.write(b'gretl_binary_matrix')
since this is not a NUL-terminated string, just an array of bytes.
Allin