gretl-1.9.12 bug report
by David Binderman
Hello there,
I just compiled gretl-1.9.12 on Linux with extra gcc compile flag -Wlogical-op
It said
../lib/src/gretl_func.c:5770:3: warning: logical 'or' of collectively exhaustive tests is always true [-Wlogical-op]
Source code is
if (dreq == FN_NEEDS_QM &&
(!dataset_is_time_series(dset) ||
(dset->pd != 4 || dset->pd != 12))) {
gretl_errmsg_set("This function needs quarterly or monthly data");
return 1;
}
On the third lane, suggest swap || for &&.
Regards
David Binderman
11 years, 5 months
Documentation improvement for Gretl API and example in Python
by Hélio Guilherme
Hi all,
I am now creating a project to use Python to test gretl (features and
regression testing, for example), but that will be more detailed in other
emails (closed list).
As far as I know there is only one complete example on how to use libgretl.
It is in Data I-O, and no pointers for it. I propose to have a section with
functional examples, and from different languages.
Here is my Python version of the above mentioned example:
$ python calling_libgretl_example.py
Read data from /usr/local/share/gretl/data/data9-1.gdt OK
Full data range: 1951:03 - 1953:08 (n = 30)
Listing 5 variables:
0) const 1) demand 2) income 3) price 4) temp
---
The file is attached (not in UTF-8 :) ).
Proposed languages are Python, C++, and Java (it may need a wrapper).
What you think?
11 years, 6 months
allow ISO date format in plot ("show bars")
by Sven Schreiber
Hi,
in the dialog "gretl plot controls" one can specify a text file with
date pairs to get a shaded area/bar in the plot. Now that gretl switched
to supporting ISO date format, I think it should allow it here as well,
which doesn't currently work (only ":" is allowed as separator, e.g.
2009:11 instead of 2009-11).
And BTW: At least on Windows it seems that the file must have a .txt
ending to be selectable. I find this overly restrictive, especially on
Unix (where I haven't checked, however).
thanks,
sven
11 years, 6 months
Troubles with connecting gretl to MSVC
by Sergey Vartanov
Hi there.
I'm trying to use libgretl library in MS Visual Studio project. I have been
trying for a few weeks, but still cannot compile any project which has a
#include <libgretl.h>. I cannot compile even the arma_example.c file, which
is the demo file from libretl source.
I have always the same error: "ERROR: You must use a GNU Compiler."
Is there someone who can help me?
--
Best Regards
Sergey Vartanov
11 years, 6 months
join filter and >=
by Sven Schreiber
This is a placeholder/reminder that I think it happens to me that I use
'join' with a filter of the form --filter="varname >= value" but the
operation sometimes seems to apply the condition '>' instead of '>=".
I don't have time right now, but I will try to produce a minimal example
later.
thanks,
sven
11 years, 6 months
Re: [Gretl-devel] gretl translatable strings with typos?
by Allin Cottrell
On Thu, 3 Oct 2013, Hélio Guilherme wrote:
> You have:
> Missing ) @ Gnumeric files (*.gnumeric
> export? @ SAS xport files (*.xpt)
Thanks, I've fixed the gnumeric entry. As for the SAS one, "xport" is a
term of art in SAS (try googling "SAS xport"). I guess one could translate
it as "export".
Allin
11 years, 6 months
Small bug in fcast
by Marcin Błażejowski
Hi,
simple code:
<hansl>
set echo off
set messages off
open bjg
smpl 1949:01 1960:08
Model <- ols g const g(-1) --simple
fcast --dynamic --out-of-sample
</hansl>
All works fine, but if we now open the Model in GUI and type "Analysis
-> Forecasts...' we get error: "command 'fcasterr' not recognized".
All the Best,
Marcin
--
Marcin Błażejowski
GG: 203127
11 years, 6 months