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: remove inlet actual rate in compressor sampled results #190

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

olelod
Copy link
Contributor

@olelod olelod commented Sep 18, 2023

Why is this pull request needed?

The input rate (in Sm3) has been returned as the actual rate (in Am3) for compressor trains of type compressor_sampled. This is obviously not correct, since we need information about fluid density to calculate the actual rate.

@olelod olelod changed the title Ecalc 167 actual rate in compressor sampled Remove inlet actual rate in compressor sampled results Sep 18, 2023
@olelod olelod marked this pull request as ready for review September 18, 2023 13:07
@olelod olelod requested a review from a team as a code owner September 18, 2023 13:07
@olelod olelod changed the title Remove inlet actual rate in compressor sampled results chore: remove inlet actual rate in compressor sampled results Sep 18, 2023
@@ -226,7 +226,6 @@ def evaluate_rate_ps_pd(
power_unit=Unit.MEGA_WATT,
inlet_stream_condition=CompressorStreamCondition(
pressure=list(suction_pressure) if suction_pressure is not None else None,
actual_rate_m3_per_hr=list(rate) if rate is not None else None,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add a comment here or in CompressorStreamCondition to specify what you mentioned in the PR comment that knowing fluid_density is a requirement to set this, to avoid doing the same mistake in the future, and to bring awareness?

Copy link
Collaborator

@TeeeJay TeeeJay left a comment

Choose a reason for hiding this comment

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

Good fix :) Remember to use squash to change commit-message to fix:

@olelod olelod force-pushed the ECALC-167-actual-rate-in-compressor-sampled branch from 5b1868f to 4c96b09 Compare September 19, 2023 07:38
@olelod olelod force-pushed the ECALC-167-actual-rate-in-compressor-sampled branch from 4c96b09 to 82b0490 Compare September 19, 2023 07:44
@olelod olelod changed the title chore: remove inlet actual rate in compressor sampled results fix: remove inlet actual rate in compressor sampled results Sep 19, 2023
@olelod olelod merged commit 74fcfd8 into main Sep 19, 2023
6 checks passed
@olelod olelod deleted the ECALC-167-actual-rate-in-compressor-sampled branch September 19, 2023 08:02
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.

3 participants