Skip to content

Bug for handling params of template #35

@balp-jbt

Description

@balp-jbt
  • I use : const int[1,100] id, int[-200, 450] temp, int& out_temp //precision 0.1, ex: temp=10->1°C as the original model params in .xml file, and it seems works fine in GUI.

image

  • However, the error generated, messages as below:

    File "D:\Python\Python313\Lib\site-packages\pyuppaal\tracer.py", line 340, in trim_transitions
    assert len(real_param_list) == len(form_param_list), "Invalid UPPAAL template file"
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    AssertionError: Invalid UPPAAL template file

  • Try to print the info learnt by codes,

    form_param_list

    ['1', '12', 'out_temp']
    real_param_list

    ['int[1', 'id', 'int[-200', 'temp', '0.1', 'temp=10->1°C']

  • Seems the comment and the range limitations are counted into split the vars

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions