You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ModelicaModel.getParameters returns values as string instead of float #244
I might have a look at fixing this myself. However, I would someone to confirm whether changing the behavior to match the documentation would be acceptable. I guess it would technically break backwards compatibility.
@ondras12345 you are correct, it was a typos, But in general to keep the API consistent in OMjulia, OMPython and OMMatlab, we set the values as string and return the values as String, we do not perform any type checking, But however if you want to return with correct types, you can make a PR with your changes
Activity
arun3688 commentedon Apr 7, 2025
@ondras12345 you are correct, it was a typos, But in general to keep the API consistent in OMjulia, OMPython and OMMatlab, we set the values as string and return the values as String, we do not perform any type checking, But however if you want to return with correct types, you can make a PR with your changes
ondras12345 commentedon Apr 7, 2025
Keeping the API consistent seems like a good reason. I will change the test to match current behavior.
Change test_setParameters to match current behavior
Improve code format & add tests (#246)