CATIA-Systems / FMPy

Simulate Functional Mockup Units (FMUs) in Python
Other
434 stars 118 forks source link

fmpy.gui does not allow setting of tolerance under Python3 #132

Closed christiankral closed 4 years ago

christiankral commented 4 years ago

I installed FMPy under Python2 and Python3 on my Linux Mint 19 machine. Even though the Python2 version works just fine, the Python3 version does not allow to set the tolerance in the GUI. I tested this behavior with the same Linux FMU Rectifier.fmu.

Python2 settings obtained by python -m fmpy.gui

image

Python3 settings obtained by python3 -m fmpy.gui

image

However, when I operate FMPy from the Python3 environment I can run the simulation with a tolerance different than the default one:

result = simulate_fmu(fmu, relative_tolerance = 1E-6)
t-sommer commented 4 years ago

@christiankral, can you reproduce this problem with the latest version of FMPy?

christiankral commented 4 years ago

I checked the installed version:

> pip3 list | grep FMPy
FMPy                  0.2.19

and started $> python3 -m fmpy.gui

image

OK, why version 2.10? After half an hour of fiddling around with uninstalling, installing and upgrading packages it is now OK.

image

@t-sommer Thanks for your hint. This solved my problem. It seems to have been an issue of my particular installation. I am closing the issue then.