Skip to content
New issue

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

By clicking “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? Sign in to your account

Make screen_units work with Unitful #2947

Closed
wants to merge 1 commit into from

Conversation

contradict
Copy link
Contributor

Currently, constructing a model using Unitful results in many spurious warnings about missing units. This adds a check for any Unitful.FreeUnits and considers that a success.

I'm not sure what the intent of this function is, and even for DynamicQuantities it seems too restrictive. One nice way to use units is to select a consistent set of units that scale the problem nicely, these may not be base SI units depending on the problem. The system should still be able to verify consistency over that nicely-scaled set of units. Why does this function reject anything but base SI units?

@ChrisRackauckas
Copy link
Member

Needs a test

@contradict
Copy link
Contributor Author

Never mind, this happened because I used an independent variable with DynamicQuantities in a model with Unitful variables.

@contradict contradict closed this Aug 21, 2024
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