There are no loops in fityk mini-language and it's not in plans.
I'm not sure what do you want to do manually and what you want to automate.
If you don't need GUI at all, you may use fityk module in Python language.
If you need GUI and just want to simplify export, you can write a script:
i extremum(%_1,100,820) >> file
i extremum(%_2,100,820) >> file
...
and ignore the "undefined function" errors.
If it's possible to calculate the mode from function parameters, you
can export peak parameters and then do the calculations.
Finally, some time ago I added a way to call external commands. If you
have Python installed, you can try such a script:
info F > f.info
!python -c 'for i in file("f.info").read().split()[1:]: print "info
extremum(%s, 100,820)" % i' >cmd.fit
commands < cmd.fit
I think I like the last option, although I should make it a bit simpler.
>
> an attempt with:
> info extremum(@0.F,100,820) gives: Error: extremum(F,...) is not
> implemented. Does anyone need it?
This would give an extremum of the sum of all functions (but is not
implemented).
> It is a very impressive fitting program and I would like to use it
> instead of scidavis!
You are welcome.
Marcin
--
Marcin Wojdyr | http://www.unipress.waw.pl/~wojdyr/
I added syntax "commands !" to the program and now the two lines:
!python ... >cmd.fit
commands <cmd.fit
can be written as one:
commands ! python ...
or shorter as: c ! ...
M