Skip to content

[BUG]: Component names colliding with mcdisplay drawcalls crash mcdisplay #2434

@mads-bertelsen

Description

@mads-bertelsen

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:

  1. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions