Skip to content

Conversation

@dallan-keylogic
Copy link
Contributor

Summary/Motivation:

@blnicho and @mrmundt discovered a test failure in examples that was not picked up by the CI because we only run the notebooks in examples in the CI, not any tests in .py files. This PR fixes that issue, and I've verified that it works on my local machine.

When FpcTP state variables are used without any VLE present, fix_initialization_states attempts to deactivate equilibirum_constraint, which results in an AttributeError. This PR fixes that problem and adds a test to make sure the problem stays fixed.

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.

Copy link
Member

@blnicho blnicho left a comment

Choose a reason for hiding this comment

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

@dallan-keylogic thanks for helping us debug the issue and for fixing it!

@codecov
Copy link

codecov bot commented Oct 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.06%. Comparing base (2e7b873) to head (754bd4f).
⚠️ Report is 40 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1677      +/-   ##
==========================================
- Coverage   77.08%   77.06%   -0.02%     
==========================================
  Files         395      395              
  Lines       62761    62759       -2     
  Branches    10233    10234       +1     
==========================================
- Hits        48377    48366      -11     
- Misses      11977    11982       +5     
- Partials     2407     2411       +4     

☔ 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 added the CI:run-integration triggers_workflow: Integration label Oct 2, 2025
@idaes-build idaes-build removed the CI:run-integration triggers_workflow: Integration label Oct 2, 2025
@ksbeattie ksbeattie added the Priority:High High Priority Issue or PR label Oct 2, 2025
Copy link
Member

@ksbeattie ksbeattie left a comment

Choose a reason for hiding this comment

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

LGTM

@ksbeattie ksbeattie enabled auto-merge (squash) October 2, 2025 18:26
@ksbeattie ksbeattie merged commit c42c0c3 into IDAES:main Oct 2, 2025
65 checks passed
@dallan-keylogic dallan-keylogic deleted the init_states_fix branch October 2, 2025 20:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority:High High Priority Issue or PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants