Skip to content

Conversation

@andrewlee94
Copy link
Contributor

@andrewlee94 andrewlee94 commented May 3, 2024

Related to Pyomo/pyomo#3221

Requires a fix in Pyomo and/or OMLT to address exception due to sub-classing metaclass. Will also require the Pyomo dependency to be updated.

Summary/Motivation:

This PR updates IDAES to use the new public names for Pyomo component data classes.

Changes proposed in this PR:

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.

@andrewlee94 andrewlee94 self-assigned this May 3, 2024
@andrewlee94 andrewlee94 added Priority:High High Priority Issue or PR dependencies Pull requests that update a dependency file pyomo deprecation Add deprecation to codebase and/or remove deprecated feature labels May 3, 2024
@andrewlee94 andrewlee94 requested review from blnicho and jsiirola May 3, 2024 16:25
Copy link
Contributor

@dallan-keylogic dallan-keylogic left a comment

Choose a reason for hiding this comment

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

LGTM

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 fine to me, pending the tests passing once the branch is updated.

@codecov-commenter
Copy link

codecov-commenter commented May 7, 2024

Codecov Report

Attention: Patch coverage is 78.57143% with 15 lines in your changes are missing coverage. Please review.

Project coverage is 77.88%. Comparing base (6fe724a) to head (d5ae666).

Files Patch % Lines
idaes/core/util/expr_doc.py 50.00% 3 Missing ⚠️
idaes/core/util/model_diagnostics.py 78.57% 0 Missing and 3 partials ⚠️
idaes/apps/caprese/common/config.py 33.33% 2 Missing ⚠️
idaes/core/util/scaling.py 71.42% 0 Missing and 2 partials ⚠️
idaes/apps/caprese/dynamic_block.py 75.00% 1 Missing ⚠️
idaes/apps/caprese/util.py 75.00% 0 Missing and 1 partial ⚠️
idaes/core/base/property_base.py 75.00% 0 Missing and 1 partial ⚠️
idaes/core/base/var_like_expression.py 83.33% 1 Missing ⚠️
idaes/core/util/tables.py 50.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1402      +/-   ##
==========================================
- Coverage   77.89%   77.88%   -0.01%     
==========================================
  Files         394      394              
  Lines       65061    65053       -8     
  Branches    14383    14383              
==========================================
- Hits        50678    50667      -11     
- Misses      11793    11797       +4     
+ Partials     2590     2589       -1     

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

@andrewlee94 andrewlee94 requested a review from dangunter as a code owner May 7, 2024 17:41
@andrewlee94 andrewlee94 enabled auto-merge (squash) May 7, 2024 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file deprecation Add deprecation to codebase and/or remove deprecated feature Priority:High High Priority Issue or PR pyomo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants