Skip to content

Commit

Permalink
fix: maximum rate for simplified compressor train (#421)
Browse files Browse the repository at this point in the history
chore: update snapshots
  • Loading branch information
olelod authored and equinor-schen committed Aug 23, 2024
1 parent 3ca1af9 commit 169c6b8
Show file tree
Hide file tree
Showing 3 changed files with 99 additions and 99 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ def get_max_standard_rate(
# The second (1-index) axis of stages_maximum_standard_rates - each numpy array - represent each of the input
# pressure points
# Want to calculate the maximum over all stages, hence use axis=0 in numpy.amax
maximum_rates = np.amax(
maximum_rates = np.amin(
a=stages_maximum_standard_rates,
axis=0,
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3968,28 +3968,28 @@
],
"unit": "Sm3/d",
"values": [
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
null
]
},
Expand Down Expand Up @@ -10703,8 +10703,8 @@
null,
null,
null,
11151201.0,
11151201.0,
5799690.0,
5799690.0,
null,
null,
null,
Expand Down Expand Up @@ -26139,28 +26139,28 @@
]
},
"max_standard_rate": [
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
null
],
"name": "train1_A",
Expand Down Expand Up @@ -31933,28 +31933,28 @@
]
},
"max_standard_rate": [
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
null
],
"name": "train1_A",
Expand Down Expand Up @@ -34829,28 +34829,28 @@
]
},
"max_standard_rate": [
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
11151201.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
5799690.0,
null
],
"name": "train2_A",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -311,14 +311,14 @@ def test_compressor_train_simplified_known_stages_generic_chart(
np.testing.assert_allclose(
maximum_rates,
[
18701592.57495,
15346907.314928,
9453372.728938,
8118917.413603,
7452287.635996,
7452287.635996,
7452287.635996,
7452287.635996,
16571838.970157,
14527144.905398,
9148586.717274,
8061504.543898,
7443941.400856,
7443941.400856,
7443941.400856,
7443941.400856,
],
rtol=1e-3,
)
Expand Down

0 comments on commit 169c6b8

Please sign in to comment.