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

feat: implement adjustment factors for genset #555

Merged
merged 3 commits into from
Jul 31, 2024

Conversation

frodehk
Copy link
Contributor

@frodehk frodehk commented Jul 25, 2024

ECALC-1369

Have you remembered and considered?

  • 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?

Adjustment factor and adjustment constant are not implemented for genset. It is already implemented as a part of facility inputs.

What does this pull request change?

Make sure fuel consumption is scaled according to the adjustment factor and constant given in facility inputs.

Issues related to this change:

https://equinor-ecalc.atlassian.net/browse/ECALC-1369?atlOrigin=eyJpIjoiM2MxNDJhZjNhZDkyNDUzMGExODg3NjJiNzYzMzg3MmQiLCJwIjoiaiJ9

@frodehk frodehk requested a review from a team as a code owner July 25, 2024 12:41
@frodehk frodehk self-assigned this Jul 25, 2024
ECALC-1369
@@ -10,10 +10,16 @@ def __init__(
self,
data_transfer_object: dto.GeneratorSetSampled,
):
fuel_values = data_transfer_object.fuel_values
Copy link
Collaborator

Choose a reason for hiding this comment

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

We are probably doing it the same way other places, but I think that this "manipulation" of the data should be done earlier, when reading the data. Why? Because we alter the data(-file), and not the model itself. If the data file is used other places/for other things, it should still be applied. In theory a file can be used more than one place. Please let me know what you think.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Although, the way it has been implemented, sending the adjustment factor and constant to the genset, it makes sense to put here...

@frodehk frodehk merged commit 4c84931 into main Jul 31, 2024
9 checks passed
@frodehk frodehk deleted the ECALC-1369-genset-adjustment-factor branch July 31, 2024 10:34
equinor-schen pushed a commit that referenced this pull request Aug 23, 2024
* feat: implement adjustment factors for genset

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