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

refactor: move target pressure status from stages to compressor train #589

Merged
merged 1 commit into from
Sep 4, 2024

Conversation

olelod
Copy link
Contributor

@olelod olelod commented Sep 4, 2024

Move target pressures to be defined only on the compressor train, instead of also on the individual compressor stages. The target pressure status check is then also moved to the compressor train result, not on the individual compressor stage results.

Have you remembered and considered?

  • I have remembered to update documentation
  • I have remembered to update manual changelog (docs/docs/changelog/next.md)
  • I have remembered to update migration guide (docs/docs/migration_guides/)
  • I have committed with BREAKING: in footer or ! in header, if breaking
  • I have added tests (if not, comment why)
  • I have used conventional commits syntax (if you squash, make sure that conventional commit is used)
  • I have included the Jira issue ID somewhere in the commit body (ECALC-XXXX)

Why is this pull request needed?

Preparation to add inlet/outlet streams to compressor train result, so we can remove pressure before/after choking from the compressor stage results.

Issues related to this change:

Refs.
ECALC-1582

@@ -654,8 +654,8 @@
]
},
"is_valid": [
false,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

is_valid changes for the compressor stage results because the compressor stages operate within capacity, hence the compressor stage result is valid. The compressor train is still not able to meet the required discharge pressure, so is_valid on the compressor train is still false.

chore: updated snapshots to reflect changes made

ECALC-1582
@olelod olelod self-assigned this Sep 4, 2024
@olelod olelod marked this pull request as ready for review September 4, 2024 07:48
@olelod olelod requested a review from a team as a code owner September 4, 2024 07:48
@olelod olelod merged commit 098cfa9 into main Sep 4, 2024
9 checks passed
@olelod olelod deleted the refactor-compressor-trains branch September 4, 2024 07:54
@TeeeJay
Copy link
Collaborator

TeeeJay commented Sep 4, 2024

@olelod worth a note in changelog I think, since it is not a pure refactor but also a "tiny fix", wrt incorrect flags previously for stages?

@olelod
Copy link
Contributor Author

olelod commented Sep 4, 2024

@olelod worth a note in changelog I think, since it is not a pure refactor but also a "tiny fix", wrt incorrect flags previously for stages?

Good point. Did not think of that. Will add one.

frodehk pushed a commit that referenced this pull request Sep 16, 2024
…#589)

chore: updated snapshots to reflect changes made

ECALC-1582
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