Skip to content
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

fix: maximum rate for simplified compressor train #421

Merged
merged 1 commit into from
Apr 3, 2024

Conversation

olelod
Copy link
Contributor

@olelod olelod commented Apr 3, 2024

When calculating the maximum standard rate for a simplified compressor train we first find the maximum rate for the individual stages. The maximum for the train should be the minimum of the maximum rates for the individual stages. Currently we use the maximum of the maximum rates for the individual stages.

@olelod olelod requested a review from a team as a code owner April 3, 2024 12:54
@@ -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(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

It was even written in the docstring, yet implemented the other way around...

@olelod olelod force-pushed the maximum_rate_for_simplified_train branch from 697e444 to a4a2c32 Compare April 3, 2024 13:08
@olelod olelod merged commit 18235d5 into main Apr 3, 2024
6 checks passed
@olelod olelod deleted the maximum_rate_for_simplified_train branch April 3, 2024 13:11
equinor-schen pushed a commit that referenced this pull request Aug 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants