Repository navigation
OM.jl 0.8.0: MSL 4.1.0 the default; OM.help() up to date, OM.help(:examples), library examples - #75
Merged
Merged
Conversation
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
MSL_Version(OM.DEFAULT_MSL_VERSION) ofsimulate,translate,flatten,exportModelica,writeModelToFile,componentInterfaceandexplainIndexReduction;MSL_Version = "MSL:3.2.3"picks the other bundled version.OM.help()(nowsrc/help.jl) lists the current API by task;OM.help(:examples)shows worked examples on the newexamples/Libraries(your own model on the MSL, anextendsmodifier, your own library in one file and as a folder, an installed library, a parameter sweep, a.mosscript;run.jlruns them).exportModelica(name, file; MSL = true)defaulted to the unbundled MSL 4.0.0 (KeyError); the.mosclear()reset a script to 4.0.0; docstrings namedMTK_MODEas the default mode.Tests:
test/helpTests.jl(help names only defined functions and shipped files; MSL-4-only models by default),.mosclear();libraries.jl's ElectricalComponentTest pins MSL 3.2.3 (SineVoltagefreqHz). Suite: all groups pass locally.Version 0.8.0: please tag together with the
loaded-librariesPR that follows (it needs OMFrontend 1.8.0), not after this one alone.🤖 Generated with Claude Code