How to change the default timeout in pyoptislang?

Georg Kandler
Georg Kandler Member, Employee Posts: 10
Second Anniversary Ansys Employee Solution Developer Community of Practice Member Name Dropper
✭✭✭

The default timeout for pyoptislang is 30 seconds, which can be too short for certain operations.

Is it possible to change the default timeout value?

Tagged:

Best Answer

  • Georg Kandler
    Georg Kandler Member, Employee Posts: 10
    Second Anniversary Ansys Employee Solution Developer Community of Practice Member Name Dropper
    ✭✭✭
    Answer ✓

    You can access and change the default timeout value by running the following command:

    osl = Optislang()  # create the oSL instance 
    osl.osl_server.timeouts_register.default_value = 600.0  # Change the default value to 600 seconds