-
Notifications
You must be signed in to change notification settings - Fork 59
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
Update idaes-pse requirement in preparation to 2.1 release #1034
Conversation
The reason the tests are failing is because these specific tests are using the new This method needs to be implemented in the property packages, and needs to set the state blocks into a square form - generally fix the state variables and if necessary deactivate constraints that cannot be used when the states are fixed (e.g., sum of mole fractions). This is basically the same as the first step(s) of the older |
@lbianchi-lbl I'm running this tests in IDAES 2.1 so some may fail if we are still using 2.0 in this branch. (haven't finished all the corrections) |
Co-authored-by: Ludovico Bianchi <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1034 +/- ##
=======================================
Coverage 95.53% 95.53%
=======================================
Files 318 318
Lines 30966 31002 +36
=======================================
+ Hits 29584 29619 +35
- Misses 1382 1383 +1 ☔ View full report in Codecov by Sentry. |
@lbianchi-lbl all the test pass in Windows and Linux. I don't know where the |
@agarciadiego that's a dependency that used to be included with IDAES, but has been removed as part of IDAES/idaes-pse#1133. Adding it back as a testing dependency should resolve those failures. |
@@ -80,7 +80,7 @@ | |||
# primary requirements for unit and property models | |||
# maintainers: switch to SPECIAL_DEPENDENCIES_FOR_RELEASE when cutting a release of watertap | |||
*SPECIAL_DEPENDENCIES_FOR_PRERELEASE, | |||
"pyomo>=6.2,<6.6", # (also needed for units in electrolyte database (edb)) | |||
"pyomo>=6.6.1", # (also needed for units in electrolyte database (edb)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"pyomo>=6.6.1", # (also needed for units in electrolyte database (edb)) | |
"pyomo<=6.6.1", # (also needed for units in electrolyte database (edb)) |
Any reason why this shouldn't be as suggested? Would tests fail using a version of pyomo below 6.6.1?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, Pyomo 6.6.0 has known issues that affect us, namely Pyomo/pyomo#2844 and IDAES/idaes-pse#1191. Both have been resolved in Pyomo 6.6.1.
watertap/examples/flowsheets/case_studies/activated_sludge/ASM2D_flowsheet.py
Outdated
Show resolved
Hide resolved
) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "X_PHA"]) == pytest.approx( | ||
2.1218e-9, abs=1e-4 | ||
8.981e-5, abs=1e-4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
X_PHA
changed by 4 orders of magnitude but am unsure why.
watertap/examples/flowsheets/case_studies/electroNP/electroNP_flowsheet.py
Show resolved
Hide resolved
@lbianchi-lbl @bknueven Do you have any objections to me skipping the mac tests for the tests that are failing? |
No objections from me. Skip away! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Obviously there's a few things to investigate here, but I would be in favor of going ahead with this as-is.
It seems that merging in #1062 resulted in some test failures on Windows. Any thoughts on what could be done to try to address these? @adam-a-a @avdudchenko (based on the commits on #1062). |
TODO
Leave this PR open until the following PRs have been merged, and check that those changes are compatible with IDAES 2.1/Pyomo 6.6
Legal Acknowledgement
By contributing to this software project, I agree to the following terms and conditions for my contribution: