Skip to content

doc: debug plant parameter vector in MTK example of the manual#342

Merged
franckgaga merged 2 commits intomainfrom
update_mtk_manual
Mar 26, 2026
Merged

doc: debug plant parameter vector in MTK example of the manual#342
franckgaga merged 2 commits intomainfrom
update_mtk_manual

Conversation

@franckgaga
Copy link
Member

@franckgaga franckgaga commented Mar 26, 2026

Following discussion in #340, I'm sticking to the unofficial and limited-in-scope solution:

ic = initial_conditions(io_sys)
p_map = Dict(sym => ic[sym] for sym in p_sym)
p = ModelingToolkit.varmap_to_vars(p_map, p_sym)

to fetch the parameter vector. It gives a parameter vector p with the same length as p_sym, which is clearer for the user, IMO.

@codecov-commenter
Copy link

codecov-commenter commented Mar 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.57%. Comparing base (53c94fa) to head (841cbf2).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #342   +/-   ##
=======================================
  Coverage   98.57%   98.57%           
=======================================
  Files          27       27           
  Lines        5190     5190           
=======================================
  Hits         5116     5116           
  Misses         74       74           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@franckgaga franckgaga merged commit c35c3e1 into main Mar 26, 2026
5 checks passed
@franckgaga franckgaga deleted the update_mtk_manual branch March 26, 2026 14:59
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.

2 participants