McStasMcXtrace / mccode-antlr

McCode grammar implemented with ANTLR4
1 stars 0 forks source link

0-D detectors now output a filename in their sim file entry #65

Closed g5t closed 2 months ago

g5t commented 2 months ago

Sim entries from 0-D detectors now include a filename entry, like 1-D and 2-D detectors. The sim-file parser no longer works for 0-D detectors as a result of looking for a fixed number of lines to distinguish the three cases. https://github.com/McStasMcXtrace/mccode-antlr/blob/30068bdeb19ac064ca5bd8d9f11f2619c5357151/mccode_antlr/loader/simfile.py#L250

The parser should be updated to handle both the new and old formats of sim file entries.