Skip to content

Add support for symbolic units by normalizing them to SI units #2621

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Merged
merged 2 commits into from
Aug 22, 2024

Conversation

YingboMa
Copy link
Member

@YingboMa YingboMa commented Apr 5, 2024

Close #2616

@YingboMa YingboMa changed the title Add support for symbolic units Add support for symbolic units by normalizing them to SI units Apr 5, 2024
@ChrisRackauckas
Copy link
Member

Are we planning to finish this?

@ctessum
Copy link
Contributor

ctessum commented Aug 21, 2024

+1 for finishing this!

@ChrisRackauckas
Copy link
Member

Well it looks like tests were passing when I re-ran it, so let me re-run it again with the merge fix and I'll merge if it's passing.

@variables X(tt) [unit = u"L"]
DD = Differential(tt)
eqs = [DD(X) ~ p - d * X + d * X]
@test ModelingToolkit.validate(eqs)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[JuliaFormatter] reported by reviewdog 🐶

Suggested change
@test ModelingToolkit.validate(eqs)
@test ModelingToolkit.validate(eqs)

@ChrisRackauckas ChrisRackauckas merged commit 4f51c0f into master Aug 22, 2024
17 of 23 checks passed
@ChrisRackauckas ChrisRackauckas deleted the myb/nonSI branch August 22, 2024 12:52
@ctessum
Copy link
Contributor

ctessum commented Aug 24, 2024

Thanks!

@ctessum
Copy link
Contributor

ctessum commented Aug 27, 2024

Would it be possible to create a release that includes this change? Thanks!

@ChrisRackauckas
Copy link
Member

done

No Sign up for free to join this conversation on GitHub. Already have an account? No Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support scaled SI units
3 participants