Skip to content

Load each FMU's model under its own module name - #53

Open
StephenSmith25 wants to merge 1 commit into
masterfrom
fix/module-names
Open

StephenSmith25 wants to merge 1 commit into
masterfrom
fix/module-names

Conversation

@StephenSmith25

Copy link
Copy Markdown
Owner

When several FMUs ran in one Python process (FMPy, or a Python co-simulation script), the wrapper imported each model script by its plain name, so an FMU whose script shared a name with another FMU's script, or with a module already imported, ran that other code. Each FMU's script is now loaded from its resources folder under a name unique to that folder; instances of the same FMU share it. A test runs two FMUs that both use model.py, next to an unrelated module called model, in one process.

The MCP server now shows array outputs of up to 60 elements in full. Dates the 1.3.0 changelog entry and adds the fixes that shipped in it.

When several FMUs ran in one Python process (FMPy, or a Python co-simulation
script), the wrapper imported each model script by its plain name, so an FMU
whose script shared a name with another FMU's script, or with a module already
imported, ran that other code. Each FMU's script is now loaded from its
resources folder under a name unique to that folder; instances of the same FMU
share it. A test runs two FMUs that both use model.py, next to an unrelated
module called model, in one process.

The MCP server now shows array outputs of up to 60 elements in full. Dates the
1.3.0 changelog entry and adds the fixes that shipped in it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant