Hi I just realized that after having read a pre-existing instrument with reader.McStas_file the original file and the one generated by McStasScript gave different results. I found that the issue was due to one line skipped by the Reader.
Original:
COMPONENT slab = Arm()
AT (0, 0, apothem1-0.0005) RELATIVE target
Group Cadmium
EXTEND %{
SCATTER;
hithole=0;//...otherwise 0
%}
By substituting Group Cadmium with GROUP Cadmium the conversion happens smoothly. Probably the parser should be allowed to read non Capital command? The original is correctly executed by McStas after all.
I run the code with McStas 2.7 and the last release of McStasScript.
Hope this help.
Hi I just realized that after having read a pre-existing instrument with reader.McStas_file the original file and the one generated by McStasScript gave different results. I found that the issue was due to one line skipped by the Reader.
Original:
become:
By substituting
Group Cadmium
withGROUP Cadmium
the conversion happens smoothly. Probably the parser should be allowed to read non Capital command? The original is correctly executed by McStas after all.I run the code with McStas 2.7 and the last release of McStasScript. Hope this help.