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

create turbine builder and update turbine factory #723

Merged
merged 1 commit into from
Dec 16, 2024

Conversation

frodehk
Copy link
Contributor

@frodehk frodehk commented Dec 3, 2024

Why is this pull request needed?

Part of replacing dtos with builders in tests.

What does this pull request change?

  • Create yaml builder for turbine
  • Update core turbine_factory to use builder.

@frodehk frodehk self-assigned this Dec 3, 2024
@frodehk frodehk requested a review from a team as a code owner December 3, 2024 14:19
return (
YamlTurbineBuilder()
.with_name("compressor_train_turbine")
.with_turbine_loads([0, 2.352, 4.589, 6.853, 9.125, 11.399, 13.673, 15.947, 18.223, 20.496, 22.767])
Copy link
Collaborator

Choose a reason for hiding this comment

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

should loads and efficiencies be "merged" or does it make sense to provide them independently, to be able to use different setups? also, in this case as far as I can see, you use the same parameters as with the with_test_data method, use that instead ?

Copy link
Contributor Author

@frodehk frodehk Dec 5, 2024

Choose a reason for hiding this comment

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

You are right, with_test_data could be used instead. I think it is more flexible to provide them independently. However, a "merged" method could also be considered in addition.

@frodehk frodehk merged commit 56f60db into main Dec 16, 2024
8 checks passed
@frodehk frodehk deleted the turbine-factory-using-builder branch December 16, 2024 13:51
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