load data set from script

106 views
Skip to first unread message

adam

unread,
Apr 17, 2012, 9:57:12 AM4/17/12
to fityk-users
Hello,

I tried writing my first fityk script ever by deleting from the GUI
log. My very first line, loading the dataset, gave a syntax error
(which was a bit hard to find, as no line number was given back in the
error message):

@0 <'dataset.txt'

So, this worked for fityk but not for cfityk. Actually, fityk
generated it.

How to load dataset from script file if not so? I also tried what the
Manual says:

"Fityk can save its state to a script (info state > file.fit)."
http://fityk.nieto.pl/ref.html

But it seems outdated, as there's no "info state" command at all.

Best regards,
Adam Szanto-Varnagy

Marcin Wojdyr

unread,
Apr 17, 2012, 12:47:04 PM4/17/12
to fityk...@googlegroups.com
On Tue, Apr 17, 2012 at 14:57, adam <szant...@gmail.com> wrote:
> Hello,
>
> I tried writing my first fityk script ever by deleting from the GUI
> log. My very first line, loading the dataset, gave a syntax error
> (which was a bit hard to find, as no line number was given back in the
> error message):

What was the error message?

>
> @0 <'dataset.txt'
>
> So, this worked for fityk but not for cfityk.

Since you don't specify full path, I suppose that you started fityk in
a different directory than cfityk.
If you want to open file from the same directory as script, there is a
special trick for this, use as path:
_EXECUTED_SCRIPT_DIR_/dataset.txt

> "Fityk can save its state to a script (info state > file.fit)."
> http://fityk.nieto.pl/ref.html
>
> But it seems outdated, as there's no "info state" command at all.

This command is present in the latest version, and it's not new. Which
version do you use?

Marcin

adam

unread,
Apr 18, 2012, 8:17:17 AM4/18/12
to fityk-users
Thanks, now it works, it needed an upgrade!

Adam

On ápr. 17, 18:47, Marcin Wojdyr <woj...@gmail.com> wrote:
Reply all
Reply to author
Forward
0 new messages