KrainerD / Homework1

Creating a repository and using unit tests
Apache License 2.0
0 stars 1 forks source link

Review #3

Open danielhuppmann opened 5 months ago

danielhuppmann commented 5 months ago

Please review, @alexfroschauer

alexfroschauer commented 5 months ago

Description of repository

The goal of this project is to calculate the electricity price of a powerplant.

This repository contains two python files, one with the actual functions and one for testing the code. Additionally, there are a README-file, an APACHE 2.0 license, .gitignore-file and two workflows. The workflow ruff.yaml checks the format by using the ruff linter, the other one pytest.yml tests the functions. Both work as expected.

To achieve the goal, the file electricity_price.py contains 5 functions and uses the numpy package. CRF() calculates the capital recovery factor for a given interest rate and annuity. fuel_costs() determines the fuel costs for a given efficiency. CO2_costs calculates expenses for CO2-emissions by considering the co2 price, the emission factor and the efficiency of the powerplant. electricity_prices() combines the three mentioned functions and returns the electricity price in €/MWh. The additional function Bezugsgroessen() calculates reference values of transformers and asynchronous motors to fit electricity_prices().

Tests

alexfroschauer commented 5 months ago

Second assignment completed, @danielhuppmann