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

chore: define yaml classes for remaining elements in MODELS #307

Merged
merged 7 commits into from
Dec 14, 2023

Conversation

frodehk
Copy link
Contributor

@frodehk frodehk commented Nov 30, 2023

Why is this pull request needed?

Add classes for remaining elements in MODELS, for use with V2.

What does this pull request change?

  • Add yaml class for compressor STAGE
  • Add yaml class for SINGLE_SPEED_COMPRESSOR_TRAIN
  • Add yaml class for VARIABLE_SPEED_COMPRESSOR_TRAIN
  • Add yaml class for SIMPLIFIED_VARIABLE_SPEED_COMPRESSOR_TRAIN
  • Add yaml class for VARIABLE_SPEED_COMPRESSOR_TRAIN_MULTIPLE_STREAMS_AND_PRESSURES

Issues related to this change:

https://equinor-ecalc.atlassian.net/browse/ECALC-505?atlOrigin=eyJpIjoiYzMwMGYwZTgyMDZhNGUwOTkzODAzZTliNWU0ZWNjMDAiLCJwIjoiaiJ9

@frodehk frodehk self-assigned this Nov 30, 2023
@frodehk frodehk requested a review from a team as a code owner November 30, 2023 14:58
Comment on lines +94 to +95
def to_dto(self):
raise NotImplementedError
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it is a mistake to define this as needed in YamlBase, as I have done currently.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

You mean it should be defined in YamlBase instead?

Copy link
Collaborator

Choose a reason for hiding this comment

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

no, it doesnt matter that much. We want to skip dtos completely, and map directly to domain. dtos are no longer needed, but we will need some clever ways to map to domain. WIP :)

@frodehk frodehk merged commit fedb807 into main Dec 14, 2023
6 checks passed
@frodehk frodehk deleted the ECALC-505-define-yaml-classes-for-elements-in-models branch December 14, 2023 12:56
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