Bug report : python model crash

When evaluating a python model with two return statements (during model modification), the Persalys editor may crash to desktop. This looses all current unsaved work and should be avoided.

The ideal case would be an in-interface message that presents the error without crashing the application.

Minimum crashing example :

def _exec(X0, X1):
    Y0 = X0
    Y1 = X0 + X1
    return (Y0, Y1)
    return Y0

Platform :

  • Windows 11 23H2
  • Persalys 18.0

Hello,

Thank you for your report. We have identified and fixed the issue. The fix will be available in the next Persalys release.

Regards,