Skip to content

OM.jl 0.8.0: MSL 4.1.0 the default; OM.help() up to date, OM.help(:examples), library examples - #75

Merged
JKRT merged 1 commit into
masterfrom
help-and-library-examples
Oct 27, 2026
Merged

JKRT merged 1 commit into
masterfrom
help-and-library-examples

Conversation

@JKRT

@JKRT JKRT commented Oct 27, 2026

Copy link
Copy Markdown
Owner
  • MSL 4.1.0 is the default MSL_Version (OM.DEFAULT_MSL_VERSION) of simulate, translate, flatten, exportModelica, writeModelToFile, componentInterface and explainIndexReduction; MSL_Version = "MSL:3.2.3" picks the other bundled version.
  • OM.help() (now src/help.jl) lists the current API by task; OM.help(:examples) shows worked examples on the new examples/Libraries (your own model on the MSL, an extends modifier, your own library in one file and as a folder, an installed library, a parameter sweep, a .mos script; run.jl runs them).
  • Docs: the Libraries page walks through the examples; the Examples and home pages use MSL 4.1.0 (same results as 3.2.3); the multibody showcase stays on 3.2.3.
  • Fixes: exportModelica(name, file; MSL = true) defaulted to the unbundled MSL 4.0.0 (KeyError); the .mos clear() reset a script to 4.0.0; docstrings named MTK_MODE as the default mode.

Tests: test/helpTests.jl (help names only defined functions and shipped files; MSL-4-only models by default), .mos clear(); libraries.jl's ElectricalComponentTest pins MSL 3.2.3 (SineVoltage freqHz). Suite: all groups pass locally.

Version 0.8.0: please tag together with the loaded-libraries PR that follows (it needs OMFrontend 1.8.0), not after this one alone.

🤖 Generated with Claude Code

…amples), library examples

- MSL 4.1.0 is the default MSL_Version (OM.DEFAULT_MSL_VERSION) of flatten,
  componentInterface, explainIndexReduction, simulate, translate, writeModelToFile
  and exportModelica; MSL_Version = "MSL:3.2.3" selects the other bundled version.
- OM.help() (src/help.jl) lists the current API by task; OM.help(:examples) shows
  worked examples on examples/Libraries: your own model on the MSL, a library
  model modified with extends, a library of your own in one file and as a folder,
  an installed library, a parameter sweep, a .mos script; run.jl runs them.
- Docs: the Libraries page walks through them; the Examples and home pages use
  MSL 4.1.0 (same results as 3.2.3), the multibody showcase stays on 3.2.3.
- Fixes: exportModelica(name, file; MSL = true) defaulted to the unbundled
  MSL 4.0.0 (KeyError); the .mos clear() reset a script to 4.0.0; docstrings named
  MTK_MODE as the default mode.
- Tests: help names only defined functions and shipped files; MSL-4-only models
  by default; .mos clear(); runModelMTK takes MSL_Version (ElectricalComponentTest
  pins 3.2.3: SineVoltage freqHz).

Assisted-by: Claude Opus 5.5
@JKRT
JKRT merged commit 010a9bc into master Oct 27, 2026
6 checks passed
@JKRT
JKRT deleted the help-and-library-examples branch October 27, 2026 16:35
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