svenreiche / Genesis-1.3-Version4

Time-dependent, 3D Code to simulate the amplification process of a Free-electron Laser.
GNU General Public License v3.0
53 stars 26 forks source link

sequence_filelist: Sequence loading values from text file #133

Closed ZeugAusHH closed 8 months ago

ZeugAusHH commented 8 months ago

Adds feature to use sequences with values loaded from a text file at runtime.

Example:

&sequence_filelist
   label=phi.sase21
   file=list1.txt
&end

The file provided as parameter value to file is expected to be a text file, with one value per line. Once all values loaded from the file are exhausted, the hard-coded default value of 0 is returned. In the future the default value will be made adjustable.