Skip to content

Fix parameter sweep convert units function#51

Merged
MichaelPesce merged 5 commits intoprommis:mainfrom
MichaelPesce:fix-param-sweep-inputs
Feb 2, 2026
Merged

Fix parameter sweep convert units function#51
MichaelPesce merged 5 commits intoprommis:mainfrom
MichaelPesce:fix-param-sweep-inputs

Conversation

@MichaelPesce
Copy link
Copy Markdown
Collaborator

@MichaelPesce MichaelPesce commented Jan 12, 2026

Issue: parameter sweep converting units from latest value in flowsheet object, not value for that sweep iteration

Solution:

  • create a temp variable initialized to the variable value
  • use pyunits.get_units() to get original object units
  • convert to ui_units

…work in the case of scalars and whatnot, in which case use whatever value parameter sweep outputted
@ksbeattie ksbeattie added the Priority:Normal Normal Priority Issue or PR label Jan 20, 2026
@MichaelPesce MichaelPesce merged commit 4756ea3 into prommis:main Feb 2, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority:Normal Normal Priority Issue or PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants