Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1578 +/- ##
==========================================
+ Coverage 76.86% 76.87% +0.01%
==========================================
Files 394 394
Lines 63246 63248 +2
Branches 10360 10361 +1
==========================================
+ Hits 48611 48622 +11
+ Misses 12187 12186 -1
+ Partials 2448 2440 -8 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
idaes/models/properties/modular_properties/base/tests/test_utility.py
Outdated
Show resolved
Hide resolved
| pp_VLE = pp | ||
|
|
||
| if init_VLE: | ||
| if num_VLE == 1: # Only support initialization when a single VLE is present |
There was a problem hiding this comment.
Should there be an else clause if num_VLE somehow exceeds 1, where either an exception is raised or a warning is logged?
adam-a-a
left a comment
There was a problem hiding this comment.
I only have one question on whether we should handle the scenario where num_VLE > 1 by raising an exception or at least logging a warning. It may be the case that num_VLE can never be >1 because it is caught elsewhere, but I didn't do a deep enough to dive to check that.
It's possible, in theory, for there to be multiple VLE if we have a vapor/liquid/liquid system. That's why the exception isn't raised. Such a system isn't explicitly supported at the moment, but a user who knows what they're doing could probably set one up. |
In that case, we should at least log a warning (or possibly raise a |
|
At this point, I'm inclined to merge this with or without Codecov's approval. I first created a warning to implement @adam-a-a 's suggestion, but I found I couldn't test it because initialization throws an exception if constraints have large residuals at the end. Before that, however, I had to correct an issue in which |
Fixes
-- Corrects VLE initialization behavior when only Henry components are present
-- Raises an exception when given a VLE with no components in both phases
Summary/Motivation:
Addresses #1577
Legal Acknowledgement
By contributing to this software project, I agree to the following terms and conditions for my contribution: