PyUPPAAL icon indicating copy to clipboard operation
PyUPPAAL copied to clipboard

Bug for handling params of template

Open balp-jbt opened this issue 1 year ago • 1 comments

  • 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

balp-jbt avatar Dec 18 '24 12:12 balp-jbt

Thank you for your support! This bug has been fixed in GitHub. PyPi will be updated to 1.2.2 soon, and I will notify you here.

Jack0Chan avatar Dec 19 '24 02:12 Jack0Chan