Skip to content

Disaggregate and test economic postprocessing (E2)#520

Merged
smartie2076 merged 64 commits intodevfrom
patch/economic_postprocessing
Aug 25, 2020
Merged

Disaggregate and test economic postprocessing (E2)#520
smartie2076 merged 64 commits intodevfrom
patch/economic_postprocessing

Conversation

@smartie2076
Copy link
Copy Markdown
Collaborator

@smartie2076 smartie2076 commented Aug 19, 2020

Fix #330
Fix #240
Addresses #222

Changes proposed in this pull request:

  • Change faulty addition sign to multiplication for cost_upfront
  • Disaggregate economic evaluation for easy pytest definition
  • Pytest for cost_upfront
  • Pytest for total investment costs
  • Pytest for total_om_costs
  • Pytest for annuity
  • Pytest for LCOE

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

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

@smartie2076 smartie2076 added the bug Something isn't working label Aug 19, 2020
@smartie2076 smartie2076 self-assigned this Aug 19, 2020
@smartie2076
Copy link
Copy Markdown
Collaborator Author

@ursulaelmir you can close #519, I take over with this PR.

@smartie2076
Copy link
Copy Markdown
Collaborator Author

smartie2076 commented Aug 20, 2020

@ursulaelmir we need to be able to calculate the replacement costs of the already installed assets, as they also may need a replacement in the duration of the project. Therefore, I (re) defined C2.replacement_costs() and C2.capex_from_investment(). I am not done integrating them, but it is a heads-up.

Todo:

  • Replacement costs of installed assets currently not covered - use results from C2.capex_from_investment()/ C2.replacement_costs()
  • Update C2 pytests
  • Test if "price" is used at all now, or if we can scrap that one thoughout the script

Copy link
Copy Markdown
Collaborator Author

@smartie2076 smartie2076 left a comment

Choose a reason for hiding this comment

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

Thanks PF!

Copy link
Copy Markdown
Collaborator Author

@smartie2076 smartie2076 left a comment

Choose a reason for hiding this comment

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

Thanks @Bachibouzouk ! I have actually fixed your remarks in #525 only (I know, I know...), as I want to merge this quickly and the changes were not essential.

smartie2076 and others added 3 commits August 25, 2020 16:11
Co-authored-by: Pierre Francois <[email protected]>
Co-authored-by: Pierre Francois <[email protected]>
@smartie2076 smartie2076 merged commit a569546 into dev Aug 25, 2020
@smartie2076 smartie2076 deleted the patch/economic_postprocessing branch August 25, 2020 14:26
smartie2076 added a commit that referenced this pull request Aug 25, 2020
smartie2076 added a commit that referenced this pull request Aug 25, 2020
smartie2076 added a commit that referenced this pull request Aug 25, 2020
smartie2076 added a commit that referenced this pull request Aug 25, 2020
@Bachibouzouk Bachibouzouk mentioned this pull request Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Testing] Finish E2 pytests [Bug] Definition and calculation of cost parameters unclear

3 participants