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

Allow kW power units to scale correctly #31

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

davet2001
Copy link
Owner

Highlighted in #30, if an entity had power units in kW rather than W, this was scaled incorrectly in the flow graph.

This change converts kW units into W. With this change anything anything with units kW is scaled by 1000, and everything else is scaled by 1 (this includes W, as well as no units and MW, GW, TW etc).

(so MW, GW, TW are not correctly supported yet).

Fixes #30

@davet2001 davet2001 merged commit cbf3fca into main Jan 29, 2025
2 checks passed
@davet2001 davet2001 deleted the issue30_allow_different_power_units branch January 29, 2025 22:05
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.

Feature Request - Unit Conversion
1 participant