Describe the bug
If components have names colliding with drawcalls such as sphere, box, mcdisplay will fail with a message such as below:
Syntax error in input!
LexToken(DRAWCALL,'sphere',19,633)
Document steps to reproduce the bug
Steps to reproduce the behavior:
- Run mcdisplay on an instrument with a component named sphere, for example Unit_test_logger_2D_space (will be updated to avoid this problem at some point)
Expected behavior
Expected mcdisplay to show instrument
Screenshots
Not relevant
OS and McStas/McXtrace version (please complete the following information):
- OS: OS X 14.8.5
- McCode variant McStas
- Version 3.6.14 and recent main built from source
Add your code / dataset
Unit_test_abs_logger_1D_space_tof_to_lambda.instr.zip
Additional context
Not relevant
Describe the bug
If components have names colliding with drawcalls such as sphere, box, mcdisplay will fail with a message such as below:
Document steps to reproduce the bug
Steps to reproduce the behavior:
Expected behavior
Expected mcdisplay to show instrument
Screenshots
Not relevant
OS and McStas/McXtrace version (please complete the following information):
Add your code / dataset
Unit_test_abs_logger_1D_space_tof_to_lambda.instr.zip
Additional context
Not relevant