-
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
Merged
Merged
Changes from all commits
Commits
Show all changes
48 commits
Select commit
Hold shift + click to select a range
b56f0df
Try updating idaes-pse requirement to watertap-org/idaes-pse:main
lbianchi-lbl f9dbbc9
Try pyomo from current Pyomo/pyomo:main
lbianchi-lbl 32dca48
Use 2.1.0rc0 for IDAES requirement
lbianchi-lbl ee84bc2
Try the combination IDAES 2.0, Pyomo 6.6.1
lbianchi-lbl 951247e
dummy commit fixing a typo
adam-a-a 79da7f4
dummy commit for demonstration
adam-a-a 01c3045
fixing unit and prop test
agarciadiego ecc171a
running black
agarciadiego c062d94
Update setup.py
agarciadiego be32768
property intialize error
agarciadiego a42a8a4
amo 1690 add initialize
agarciadiego 230a283
scaling asm2d
agarciadiego 3eaa200
scaling for linux
agarciadiego cf8424e
turning off tee
agarciadiego 688efe6
Merge branch 'main' into idaes-2.1
agarciadiego bd91cdd
electronP scaling
agarciadiego 9a2c8f3
asm2d scaling
agarciadiego ca25f95
changing units of aggragate
agarciadiego 1e27615
run black
agarciadiego 1f64525
lssro units
agarciadiego 20d6021
electronP deactivating constraints
agarciadiego 809df94
electronP deactivating constraints
agarciadiego dd3bcf8
electronP check
agarciadiego bafad0d
for loop
agarciadiego 8838a7a
new set
agarciadiego faabcd3
asm2d
agarciadiego 4b7faea
asm2d rescale
agarciadiego aa886dc
solution 2
agarciadiego 00f0543
rescaling testing linux
agarciadiego f66c7b7
rescaling equation
agarciadiego f8c5847
reversing
agarciadiego b9168f2
asm2d model solve
agarciadiego b5d096e
Add nbconvert as a testing requirement
lbianchi-lbl 9e9490c
mac test skip
agarciadiego 3463dd1
Merge branch 'idaes-2.1' of https://github.com/lbianchi-lbl/watertap …
agarciadiego 1f08db8
running black
agarciadiego 81c309e
test skip
agarciadiego bafad62
Merge branch 'main' into idaes-2.1
lbianchi-lbl c28f436
Merge branch 'main' into idaes-2.1
lbianchi-lbl 2b925dc
Merge branch 'main' into idaes-2.1
lbianchi-lbl 5d1aa7b
Merge branch 'main' into idaes-2.1
lbianchi-lbl 7093184
Merge branch 'main' into idaes-2.1
lbianchi-lbl 35eaab4
Add fix_initialization_states() for new NaCl_T_dep prop model
lbianchi-lbl 5c957d2
Merge branch 'main' into idaes-2.1
lbianchi-lbl 7e3c9c8
Merge branch 'main' into idaes-2.1
lbianchi-lbl 528ff66
Add ad-hoc temporary workaround for solver inconsistencies on WIndows
lbianchi-lbl bb67779
Remove notebook with failures on Windows
lbianchi-lbl 700b024
Update IDAES requirement to 2.1.0
lbianchi-lbl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,10 +57,10 @@ def test_results(self, model): | |
assert value(model.fs.Treated.temperature[0]) == pytest.approx(298.15, rel=1e-4) | ||
assert value(model.fs.Treated.pressure[0]) == pytest.approx(101325, rel=1e-4) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "S_A"]) == pytest.approx( | ||
5.3211e-5, rel=1e-4 | ||
5.4560e-5, rel=1e-4 | ||
) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "S_F"]) == pytest.approx( | ||
2.5618e-3, rel=1e-2 | ||
2.5736e-3, rel=1e-2 | ||
) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "S_I"]) == pytest.approx( | ||
30e-3, rel=1e-4 | ||
|
@@ -69,25 +69,25 @@ def test_results(self, model): | |
13.837e-3, abs=1e-4 | ||
) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "S_NH4"]) == pytest.approx( | ||
9.0286e-6, rel=1e-4 | ||
8.98349e-6, rel=1e-4 | ||
) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "S_NO3"]) == pytest.approx( | ||
4.4784e-3, abs=1e-4 | ||
4.3924e-3, abs=1e-4 | ||
) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "S_O2"]) == pytest.approx( | ||
7.8653e-3, abs=1e-4 | ||
7.8744e-3, abs=1e-4 | ||
) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "S_PO4"]) == pytest.approx( | ||
2.5913e-3, rel=1e-4 | ||
2.7958e-3, rel=1e-4 | ||
) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "X_AUT"]) == pytest.approx( | ||
1.3278e-3, abs=1e-4 | ||
1.3277e-3, abs=1e-4 | ||
) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "X_H"]) == pytest.approx( | ||
36.313e-3, rel=1e-4 | ||
36.331e-3, rel=1e-4 | ||
) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "X_I"]) == pytest.approx( | ||
21.178e-3, rel=1e-4 | ||
21.1808e-3, rel=1e-4 | ||
) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "X_MeOH"]) == pytest.approx( | ||
0, abs=1e-4 | ||
|
@@ -96,32 +96,32 @@ def test_results(self, model): | |
0, abs=1e-4 | ||
) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "X_PAO"]) == pytest.approx( | ||
2.21218e-3, abs=1e-4 | ||
2.111e-3, abs=1e-4 | ||
) | ||
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 commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "X_PP"]) == pytest.approx( | ||
0.7773e-3, abs=1e-4 | ||
0.66913e-3, abs=1e-4 | ||
) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "X_S"]) == pytest.approx( | ||
1.1586e-3, rel=1e-4 | ||
1.15897e-3, rel=1e-4 | ||
) | ||
assert value(model.fs.Treated.conc_mass_comp[0, "X_TSS"]) == pytest.approx( | ||
76.828e-3, rel=1e-4 | ||
76.489e-3, rel=1e-4 | ||
) | ||
assert value(model.fs.Treated.alkalinity[0]) == pytest.approx( | ||
7.2343e-3, rel=1e-4 | ||
7.243e-3, rel=1e-4 | ||
) | ||
# Sludge stream | ||
assert value(model.fs.Sludge.flow_vol[0]) == pytest.approx(4.2808e-3, rel=1e-4) | ||
assert value(model.fs.Sludge.temperature[0]) == pytest.approx(298.15, rel=1e-4) | ||
assert value(model.fs.Sludge.pressure[0]) == pytest.approx(101325, rel=1e-4) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "S_A"]) == pytest.approx( | ||
5.3211e-5, rel=1e-4 | ||
5.4560e-5, rel=1e-4 | ||
) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "S_F"]) == pytest.approx( | ||
2.5618e-3, rel=1e-2 | ||
2.5736e-3, rel=1e-2 | ||
) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "S_I"]) == pytest.approx( | ||
30e-3, rel=1e-4 | ||
|
@@ -130,25 +130,25 @@ def test_results(self, model): | |
13.837e-3, abs=1e-4 | ||
) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "S_NH4"]) == pytest.approx( | ||
9.0286e-6, rel=1e-4 | ||
8.9834e-6, rel=1e-4 | ||
) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "S_NO3"]) == pytest.approx( | ||
4.4784e-3, abs=1e-4 | ||
4.3924e-3, abs=1e-4 | ||
) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "S_O2"]) == pytest.approx( | ||
7.8653e-3, abs=1e-4 | ||
7.8744e-3, abs=1e-4 | ||
) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "S_PO4"]) == pytest.approx( | ||
2.5913e-3, rel=1e-4 | ||
2.7958e-3, rel=1e-4 | ||
) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "X_AUT"]) == pytest.approx( | ||
58.680e-3, abs=1e-4 | ||
58.6744e-3, abs=1e-4 | ||
) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "X_H"]) == pytest.approx( | ||
1.6193, rel=1e-4 | ||
1.6200, rel=1e-4 | ||
) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "X_I"]) == pytest.approx( | ||
953.56e-3, rel=1e-4 | ||
953.686e-3, rel=1e-4 | ||
) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "X_MeOH"]) == pytest.approx( | ||
0, abs=1e-4 | ||
|
@@ -157,20 +157,20 @@ def test_results(self, model): | |
0, abs=1e-4 | ||
) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "X_PAO"]) == pytest.approx( | ||
94.272e-3, abs=1e-4 | ||
93.795e-3, abs=1e-4 | ||
) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "X_PHA"]) == pytest.approx( | ||
3.6979e-3, abs=1e-4 | ||
4.0913e-3, abs=1e-4 | ||
) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "X_PP"]) == pytest.approx( | ||
35.460e-3, abs=1e-4 | ||
30.522e-3, abs=1e-4 | ||
) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "X_S"]) == pytest.approx( | ||
50.980e-3, rel=1e-4 | ||
50.995e-3, rel=1e-4 | ||
) | ||
assert value(model.fs.Sludge.conc_mass_comp[0, "X_TSS"]) == pytest.approx( | ||
3.423, rel=1e-4 | ||
3.4078, rel=1e-4 | ||
) | ||
assert value(model.fs.Sludge.alkalinity[0]) == pytest.approx( | ||
7.2343e-3, rel=1e-4 | ||
7.2430e-3, rel=1e-4 | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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.