Skip to content

Feature/energy system max demand fulfillment fix#844

Merged
ciaradunks merged 7 commits intofeature/energy_system_max_demand_fulfillmentfrom
feature/energy_system_max_demand_fulfillment_fix
Mar 29, 2021
Merged

Feature/energy system max demand fulfillment fix#844
ciaradunks merged 7 commits intofeature/energy_system_max_demand_fulfillmentfrom
feature/energy_system_max_demand_fulfillment_fix

Conversation

@smartie2076
Copy link
Copy Markdown
Collaborator

Hi @ciaradunks I found the issues why the check did not work. I commited in very small batches, so that you can check where what went wrong. I also added a pseudo-benchmark test that assessed whether the check was running in general.

There are two failing tests now.

This one is interesting, as timeseries_peak seems to be missing. All non-dispatchable PV assets have this parameter, so what could this be? It is the exception that we define a fuel source in energyProduction.csv. There must be an exeption for this case.

FAILED tests/test_benchmark_KPI.py::Test_Economic_KPI::test_benchmark_Economic_KPI_C2_E2 - KeyError: 'timeseries_peak'

And

FAILED tests/test_input_folder_parameters.py::test_input_folder_csv_files_have_required_parameters[D:\\PycharmProjects\\mvs_eland\\tests\\benchmark_test_outputs\\validity_chec
k_insufficient_capacities\\inputs]

Which I think is unimportant.

@smartie2076
Copy link
Copy Markdown
Collaborator Author

smartie2076 commented Mar 25, 2021

My last commit now fixed the failing benchmark test. This means, however, that you need to adapt your pytests to also cover fuel sources and their exceptions.

Edit: Ie. you need a seperate test for ENERGY_PRODUCTION: {},, where you run the function for one dispatchable fuel source and one non-dispatchable renewbale source. (Btw, I did the if-loop based on TIMESERIES_PEAK which is not as beautiful as on DISPATCHABILITY, but it does the job).

@ciaradunks ciaradunks merged commit 5964b0a into feature/energy_system_max_demand_fulfillment Mar 29, 2021
@ciaradunks ciaradunks deleted the feature/energy_system_max_demand_fulfillment_fix branch March 29, 2021 09:47
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