Skip to content

Conversation

@dallan-keylogic
Copy link
Contributor

@dallan-keylogic dallan-keylogic commented Nov 20, 2025

Summary/Motivation:

This PR adds additional initialization behavior for the MSContactor when has_holdup=True.

Legal Acknowledgement

By contributing to this software project, I agree to the following terms and conditions for my contribution:

  1. I agree my contributions are submitted under the license terms described in the LICENSE.txt file at the top level of this directory.
  2. I represent I am authorized to make the contributions and grant the license. If my employer has rights to intellectual property that includes these contributions, I represent that I have received permission to make contributions and grant the required license on behalf of that employer.

@codecov
Copy link

codecov bot commented Nov 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.43%. Comparing base (37e21e4) to head (b157010).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1707      +/-   ##
==========================================
- Coverage   77.44%   77.43%   -0.01%     
==========================================
  Files         395      395              
  Lines       64792    64810      +18     
  Branches    10902    10908       +6     
==========================================
+ Hits        50178    50187       +9     
- Misses      12099    12108       +9     
  Partials     2515     2515              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dallan-keylogic dallan-keylogic marked this pull request as ready for review November 20, 2025 17:25
@ksbeattie ksbeattie added the Priority:Normal Normal Priority Issue or PR label Nov 20, 2025
@ksbeattie
Copy link
Member

@dallan-keylogic putting this not on the Nov release but the Feb release.

Copy link
Contributor

@bpaul4 bpaul4 left a comment

Choose a reason for hiding this comment

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

Looks good to me.

for stream in model.streams:
holdup_var = getattr(model, stream + "_material_holdup")
holdup_eqn = getattr(model, stream + "_material_holdup_constraint")
# calculate_variable_from_constraint(holdup_var, holdup_eqn)
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove?

@dallan-keylogic dallan-keylogic merged commit 3e87df6 into IDAES:main Nov 21, 2025
45 checks passed
@dallan-keylogic dallan-keylogic deleted the mscontactor_holdup_init branch November 21, 2025 22:24
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.

4 participants