Skip to content

Fix/chp component#952

Merged
Bachibouzouk merged 10 commits intodevfrom
fix/chp_component
Feb 3, 2023
Merged

Fix/chp component#952
Bachibouzouk merged 10 commits intodevfrom
fix/chp_component

Conversation

@Bachibouzouk
Copy link
Copy Markdown
Collaborator

@Bachibouzouk Bachibouzouk commented Sep 8, 2022

This PR need to be rebased on dev once #956 is merged

Fix #803

Changes proposed in this pull request:

  • Introducing chp component

The following steps were realized, as well (if applies):

  • Use in-line comments to explain your code
  • Write docstrings to your code (example docstring)
  • For new functionalities: Explain in readthedocs
  • Write test(s) for your new patch of code (pytests, assertion debug messages)
  • Update the CHANGELOG.md
  • Apply black (black . --exclude docs/)
  • Check if benchmark tests pass locally (EXECUTE_TESTS_ON=master pytest)

@Bachibouzouk
Copy link
Copy Markdown
Collaborator Author

@NargesChinichian - we should add a test for this component, for example if the beta parameter is not provided

Copy link
Copy Markdown
Collaborator Author

@Bachibouzouk Bachibouzouk left a comment

Choose a reason for hiding this comment

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

Still need to add a test for raising error if beta is not provided

Think of the case where people define a parameter for beta when it was not needed, we should also have an error raised in that case

)

model.add(ext_turb_chp)
kwargs[OEMOF_ExtractionTurbineCHP].update({dict_asset[LABEL]: ext_turb_chp})
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I guess you forgot to push the change where you define OEMOF_ExtractionTurbineCHP

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I did. Now added

@NoCh-Git
Copy link
Copy Markdown
Collaborator

NoCh-Git commented Sep 8, 2022

The structure now is that it goes to extraction turbine chp only if a beta is provided. We can't check for the wrong addition of beta with this logic.

If uploaded timeseries did not have timestamps there was an error
Expected inputs of chp are two efficiencies for the heat and electricity
busses and the beta factor (power losses)

Co-authored-by: [email protected]
function E1.add_info_flows, E1.get_results and
E2.get_costs were modified as well as the data_parser
@Bachibouzouk Bachibouzouk merged commit 84375e4 into dev Feb 3, 2023
@Bachibouzouk Bachibouzouk deleted the fix/chp_component branch February 3, 2023 13:21
@Bachibouzouk Bachibouzouk mentioned this pull request Apr 27, 2024
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.

Ratio between the heat and electricity output of a CHP is currently simulated as fix value

2 participants