Request: replace string in .tmpl
Merge problem has been found in the following configuration:
- in .data file
- in .tmpl file
File1: DISTRIBUTION, DISTRIBUTION=FROMFILE, FNAME="_BEAMDISTR_"``, INPUTMOUNITS=NONE, OFFSETX = 0.0, OFFSETY = 0.0, OFFSETZ =_MIDPLANE_/1000;
The output (in .in file) from runOPAL.py is:
File1: DISTRIBUTION, DISTRIBUTION=FROMFILE, FNAME="_BEAMDISTR_", INPUTMOUNITS=NONE, OFFSETX = 0.0, OFFSETY = 0.0, OFFSETZ =120.000000/1000;
Two error messages appear in the terminal output
sed: -e expression #1 (closed), char 14: unknown option to `s'
sed: -e expression #1 (closed), char 16: unknown option to `s'
However, the .data file seems to be read properly:
Parameter set in SCGantry.in are:
:::: NPART= 10000
:::: MAPNAME= /afs/psi.ch/project/SCGantry/nobackup//3D_Maps/Optim_1//map-TILTA=13.1864624812-QSUCUR=0.806451353134-QCUR=1.01348311666.dat
:::: LATTICE= 1375.000000
:::: BEAMPOS= -1000.000000
:::: BEAMDISTR= /afs/psi.ch/project/SCGantry/nobackup//beam/Beam_185MeV.dat
:::: CORES= 1
:::: MIDPLANE= 120.000000
('On host ', 'opalrunner')
Done with setup of the OPAL simulation but not submitting the job (--test)
All the numbers specified in the .data file are correctly replaced. The problem appears only with string.