Skip to content

Releases: CATIA-Systems/FMPy

v0.3.1

21 Jul 20:34
Compare
Choose a tag to compare

v0.3.1 (2021-07-21)

Bug fixes

  • Fix type hint for parameter "input" in "simulate_fmu()" (#286)
  • Set output arguments in fmi3.intermediateUpdate() (#273)
  • Allow fixed and tunable structural parameters (#268)
  • Fix model structure of Container FMU (#267)
  • Add missing parameter "nValues" to getString() and getBinary() and decode byte strings (#263)
  • Set stop time and handle negative start time in (#261)

Enhancements

  • Update FMI 3.0 API to v3.0-beta.2
  • Offer to open generated Jupyter notebook in GUI (#262)
  • Add arguments of fmu_info() to dump() enhancement (#285)
  • Improve Plotly plots of discrete signals (#284)
  • Define variables of Container FMU independent of inner FMUs (#265)
  • Validate that initial is not set for input and independent variables (#280)
  • Return filename from fmpy.util.download_file() (#267)
  • Add win64 on linux64 remoting w/ wine and linux64 on win64 remoting w/ WSL (experimental)
  • Assert mandatory independent variable in FMI 3.0 (#272)
  • Define model description classes with @attrs (#275)
  • Detect drive letter in fmuResourceLocation on Windows

v0.3.0

20 Apr 21:37
Compare
Choose a tag to compare

This release drops Python 2.7 support. The minimum required version is now Python 3.5.

Enhancements

  • Update API to FMI 3.0-beta.1
  • Add type hints to Model Description and simulate_fmu()
  • Add "Hide All" and fix "Show All" columns in GUI
  • Add target_platform parameter to compile_platform_binary()
  • Link against libm when compiling platform binaries on Linux (#242)
  • Add parameter set_input_derivatives to Input and simulate_fmu() (#240)
  • Escape non-ASCII characters in XML attributes (#216)

v0.2.27

28 Jan 18:59
Compare
Choose a tag to compare

Enhancements

  • Scale icons on High DPI screens (#226)
  • Add min and max columns and "Show All" action (#225)
  • Update link to FMI 2.0.2 spec (#210)
  • Handle missing documentation and model.png in web app (#187)
  • Validate XML against schema in validate_fmu() (#223)
  • Check for illegal start values (#224)
  • Add "Validate FMU" action to GUI (#221)
  • Set input derivatives for FMI 2.0 Co-Simulation (#214)
  • Add "include" parameter to fmpy.extract() (#208)
  • Handle missing "derivative" attribute in validate_fmu() (#206)
  • Call SetProcessDpiAwareness(True) on Windows to avoid broken PyQtGraph plots (#201)

v0.2.26

27 Nov 12:57
Compare
Choose a tag to compare

Enhancements

  • Create "FMU Containers" with nested FMUs (experimental) (#193)
  • Handle Scheduled Execution in instantiate_fmu() (#200)
  • Add "create-jupyter-notebook" command to CLI (#192)
  • Add all parameters to start_values in Jupyter Notebook (#190)
  • Fix Boolean start values in Jupyter Notebooks (#188)
  • Validate FMI 3 model description (#181)
  • Remove assert statements from fmpy.sundials (#202)
  • Update SSP schema to v1.0 and remove ssp.examples

v0.2.25

04 Nov 14:41
Compare
Choose a tag to compare

Enhancements

  • Add Dash based web app
  • Add Jupyter Notebook generation
  • Don't import NumPy in fmi1.py to allow reuse in projects with minimal dependencies (#184)
  • Convert array indices in write_csv() to tuple to avoid FutureWarning

v0.2.24

18 Oct 20:17
Compare
Choose a tag to compare

v0.2.24 (2020-10-14)

Enhancements

  • Allow start values with units and display units (#177)
  • Add FMI 3.0 Scheduled Execution API

v0.2.23

02 Sep 14:18
Compare
Choose a tag to compare

Enhancements

  • Add getAdjointDerivative() and fix getDirectionalDerivative()
  • Validate results for FMI 3 Reference FMUs
  • Add getClock() and setClock() to _FMU3
  • Add FMU2Model.getNominalsOfContinuousStates()

Bug fixes

  • Fix logging for FMI 3 (#159)
  • Read start value of String variables in FMI 3
  • Add missing fields to EventInfoReturnValue message (#160)
  • Move enterEventMode() and newDiscreteStates() to _FMU3
  • Fix variabilities for variable type "Clock"

v0.2.22

01 Aug 21:08
Compare
Choose a tag to compare
  • FIXED Forward fmi2NewDiscreteStates() in remoting client (#154)
  • FIXED Fix createDesktopShortcut() and addFileAssociation() (#153)
  • NEW Update FMI 3 API to 3.0-alpha.5

v0.2.21

29 Jun 22:06
Compare
Choose a tag to compare
  • FIXED Set inputs in CVode root function before getting event indicators (#150)
  • FIXED Add scipy to required packages for fmpy[plot] (#146)
  • FIXED Activate conda environment in file open command and desktop shortcut (#131)
  • FIXED Evaluate terminateSimulation in simulation loop (#145)
  • FIXED Fix return value of FMU1Model.completedIntegratorStep()
  • FIXED Add Dimension class and calculate initial shape of FMI 3 model variables
  • FIXED Raise an exception when a missing FMI function is called (#139)
  • NEW Update FMI 3 API to v3.0-alpha.4
  • NEW Validate model structure in read_model_description()
  • NEW Add "create-cmake-project" command to CLI (#129)
  • NEW Add Co-Simulation wrapper and build binaries in CI (#127)

v0.2.20

23 May 10:24
Compare
Choose a tag to compare
  • FIXED Fix fmi3Functions.h for compile_platform_binary()
  • FIXED Fix serialization in write_csv() (#138)
  • FIXED Check for existing documentation/licenses in add_remoting() (#126)
  • FIXED Fix function names in RPC calls (#125)
  • CHANGED Require pathlib only for Python version < 3.4
  • NEW Update FMI 3 API to a51b173
  • NEW Use defaultExperiment.tolerance as default in GUI (#133)
  • NEW Add "Tools" menu to GUI (#124)
  • NEW Make build configuration adjustable in build_remoting.py