Closed syl2si closed 8 months ago
Can you share an FMU to reproduce the problem?
SimpleExample.zip Sure. Rename the zip back to fmu. It was not possible to upload the file type. Here is the input.csv file for fmu stimulation: input.csv These are the expected simulation results: ['0.01,3,3,3,3,24,98304,-2147483648,384\n']
Morning Torsten,
Thank you very much for the very quick fix.
When can I expect the fix? In which FMPy version?
Slawa Slabospizki
T +49 711 3423-2628 @.**@.>
ETAS GmbH, ETAS-DEV/XPC-Fe3 Borsigstraße 24, 70469 Stuttgart, Germany www.etas.comhttp://www.etas.com/
ETAS – Empowering Tomorrow’s Automotive Software
Managing Directors: Dr. Thomas Irawan, Nicolet Eglseder, Mariella Minutolo Chairman of the Supervisory Board: Dr. Walter Schirm Registered Office: Stuttgart, Registration Court: Amtsgericht Stuttgart, HRB: 19033 From: Torsten Sommer @.> Sent: Mittwoch, 7. Februar 2024 13:14 To: CATIA-Systems/FMPy @.> Cc: Slabospizki Slawa (ETAS-DEV/XPC-Fe3) @.>; Author @.> Subject: Re: [CATIA-Systems/FMPy] Write to csv file option doen't work, as expected: expected Integer, get an exponential (Issue #647)
Closed #647https://github.com/CATIA-Systems/FMPy/issues/647 as completed via #648https://github.com/CATIA-Systems/FMPy/pull/648.
— Reply to this email directly, view it on GitHubhttps://github.com/CATIA-Systems/FMPy/issues/647#event-11731559819, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BF6H7YXI7KJDEJ3PUR4JDQDYSNVYFAVCNFSM6AAAAABC4DF7IOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJRG4ZTCNJVHE4DCOI. You are receiving this because you authored the thread.Message ID: @.***>
It will go into the next release. We‘re working on getting it out.
I use the FMPy (V0.3.19) with python (V3.8.8) to run my FMU during a pytest execution. I use the option (--otput-file output.csv) to write all the outputs to a output.csv file. I expect an Integer on one of the existing FMU outports, e.g. "-2147483648". I observe the value -2.14748e+09.
The exponential representation would be also ok, but the last four characters "3648" get lost. This is completely wrong, and I need your help to resolve the issue.
Additional Information:
I use the output to validate the exact FMU output value against an expected in a test of our VECU-BUILDER product using pytest. The exact value is mandatory for the success of my defined pytest.