Skip to content

Commit

Permalink
Merge pull request #723 from CATIA-Systems/bump-reference-fmus
Browse files Browse the repository at this point in the history
* Use Reference FMUs 0.0.37 in tests
* Add "win32" to platform map in create_fmu_container()
* Update test_fmu_info.py
  • Loading branch information
t-sommer authored Dec 11, 2024
2 parents b385ea1 + 70c9942 commit 24bde94
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions fmpy/fmucontainer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ def xml_encode(s):
platform_map = {
'darwin64': 'x86_64-darwin',
'linux64': 'x86_64-linux',
'win32': 'x86-windows',
'win64': 'x86_64-windows',
}

Expand Down
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ def resources_dir():
@pytest.fixture(scope='session')
def reference_fmus_dist_dir(resources_dir) -> Path:

version = '0.0.25'
checksum = '62e1a89c7e05b67857e5ebb834502dc06466b04cd14065fd72b2af2e3c9aea8d'
version = '0.0.37'
checksum = '9b0d6bfbceef6fc0e724620ea748f26d03ca3cf6048d17436c49b9340d553ec4'

zip_file = download_file(
url=f'https://github.com/modelica/Reference-FMUs/releases/download/v{version}/Reference-FMUs-{version}.zip',
Expand Down
8 changes: 4 additions & 4 deletions tests/test_fmu_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ def test_fmu_info(reference_fmus_dist_dir):
FMI Version 2.0
FMI Type Model Exchange, Co-Simulation
Model Name BouncingBall
Description This model calculates the trajectory, over time, of a ball dropped from a height of 1 m.
Platforms c-code, darwin64, linux64, win64
Description This model calculates the trajectory, over time, of a ball dropped from a height of 1 m
Platforms c-code, darwin64, linux64, win32, win64
Continuous States 2
Event Indicators 1
Variables 8
Generation Tool Reference FMUs (v0.0.25)
Generation Date 2023-08-04T08:43:49.469027+00:00
Generation Tool Reference FMUs (v0.0.37)
Generation Date 2024-12-09T07:40:34.834298+00:00
Default Experiment
Expand Down

0 comments on commit 24bde94

Please sign in to comment.