minor console spacing problem
by Sven Schreiber
Hi,
the console prompt is "?" or actually "? " with a blank. Using backspace
to delete that first blank is impossible for a reason. However, I saw
that it is possible to position the cursor (caret) behind the "?" with
the mouse. Example input then: "?=5", which provokes a broken console
error. This was just an accident by clicking the mouse somewhere in the
console, but I wonder if it's possible/worthwhile preventing.
cheers
sven
3 days, 2 hours
using gdt extension per default fails with open
by Sven Schreiber
Hi,
according to the doc of the open command, I think the following should
work, no? ("If no filename suffix is given (as in the first example
above), gretl assumes a native datafile with suffix .gdt.")
<hansl>
nulldata 10
store dummyfile.gdt
clear
open dummyfile.gdt
clear
open dummyfile # fails
</hansl>
This is with 2025b, not a newer snapshot.
thanks
sven
3 days, 4 hours
different eigenvalue error handling for non-numeric input
by Sven Schreiber
Hi,
consider this with gretl 2025a:
<console>
? matrix hello = {1/0} # to get invalid input
? = eigensym(hello)
Not a Number geschah bei Berechnung
? = eigen(hello)
1.#INF
? = svd(hello)
nan
</console>
So we have everything: a hard-stopping error, some IEEE code (?), and a
gretl code. Plus, with a 6x6 matrix input I also saw that eigen() spat
out a "Data error".
I think it would be good if this could be a little harmonized, no?
thanks
sven
6 days, 2 hours
some little ideas for function package ui-maker
by Sven Schreiber
Hi again,
working on a GUI-only contributed package, the following potential
enhancements (for package authors) occur to me:
- Add a possibility to mark the return value as mandatory for a GUI
function (perhaps only for gui-main). Sometimes a package does nothing
else than providing the return value, i.e. no printout, no plots. It
would be useful to disallow running the package without filling in the
return assignment name. (Currently it's always optional AFAIK.)
- Conditional sensitivity: allow to make it dependent on existence, i.e.
a non-null value of another parameter. Currently it can only process
booleans and scalars, I believe. For example, having an optional series
argument and then activating some widgets when that series input is not
null would be nice.
- Run-time maximum value for integers with drop-down list: An integer
can be assigned a max possible value at runtime, at least according to
the doc. I have an integer representing a discrete choice, with a
labeled drop-down list. (Hope it's clear what I mean.) For example,
let's say the choice list according to values 1,2,3 is "ols", "gls",
"arma". But arma only makes sense for a time-series dataset. So in the
ui-maker function I want to use the $datatype accessor to disallow the
integer input value 3 whenever the dataset is not time-series, by
setting the maximum allowed value to 2 for that integer. An extra bonus
of course would be to grey out the "arma" choice as well, but that's
already luxury. I have tested this for my case, but it had no effect. (I
guess that's because the maximum value is already hardwired when a
drop-down list is given.)
thanks,
sven
1 week, 5 days
problem with split-view of script editor
by Sven Schreiber
Hi,
here's what I'm seeing in a script editor window where I chose the split
view, so that the top half shows the beginning of the script and the
bottom half shows the end:
I type in the lower half, but I have auto-suggestions activated, and
whenever a suggestion pops up, the focus of the upper half also moves to
the same place. So the purpose of the split-view is made obsolete.
This is the latest snapshot on Windows 11. Do you also see this on Linux?
thanks
sven
1 week, 5 days
smpl error
by Marcin Błażejowski
Hi,
current git version produces "error in new starting obs" with the
following code:
<hansl>
set verbose off
open longley
smpl 5 10
</hansl>
Marcin
2 weeks
plots, mouse zooming
by Sven Schreiber
Hi,
I was wondering if it could be possible without too much effort to
enable mouse-wheel-based scrolling or zooming as described here:
http://gnuplot.info/docs_6.1/loc14336.html
I know that in a gretl-controlled plot one can already select "zoom..."
and then define a rectangle with the mouse. This works nicely.
I also know that after saving the plot as a session icon and then
executing the raw gnuplot code, one gets a native gnuplot window (not
gretl-controlled), and there the mouse-wheel thing works as well. (This
is on Windows 10.) So as an alternative route it might also be a
possibility to make it easier to send the plot directly to native
gnuplot, instead of having to go via the raw plotting code first.
Thanks
sven
2 weeks, 4 days