Automatize documentation of output KPI in RTD#869
Conversation
|
Goal for output parameter documentation, as mentioned in #853: |
|
PR #842 shows an outline of how this worked for the input parameters. |
|
@Bachibouzouk already prepared the processing of the output parameters:
|
|
I personally do not think that creating a table view of the parameters is necessary. |
|
@smartie2076 - Several internal references are not using the correct label names, this should be fixed |
|
There are a couple of references calling label They are called here twice ( I did not change anything here, though, so I do not think this is the issue. |
|
I am making sure that we can not have capitalization and space typos anymore |
f7bd13d to
490c590
Compare
|
@ciaradunks @Bachibouzouk I am sorry about the many commits - I actualy wanted to push the refactoring into a seperate branch and PR, but mistakenly pushed to this branch. Personally, I dont know anymore what |
I would distinguish between numeric and array of numeric |
I now used it in #874, and now there are also the type time series and file types |
|
Thank you for the thorough review @ciaradunks ! |
- Adapt `conf.generate_parameter_description` for output KPI - Create `conf.generate_kpi_description()`
- Add `MVS_kpi_categories.csv` - Create list using `MVS_kpi_categories.csv` and `MVS_kpis_list.csv` with `conf.generate_kpi_categories()`
- Add some labels - Add introductory text - Minor restructuring
- Add section explaining how KPI will be defined - Add section of suffixes of KPI, add label in `assumptions.rst` - Add `.. include::` for each KPI that needs to be officially defined - Restructure, so that Economic - Technical - Environmental - Figures - Autoreport
-> "total_non_renewable_energy_use" And fix
-> "total_non-renewable_energy_use" And fix
…ation" -> "renewable_share_of_local_generation" And fix
…ent" -> "specific_emissions_per_electricity_equivalent" And fix
…vider" -> "total_consumption_from_energy_provider"
…osts_of_electricity_equivalent" And fix
…_sector_coupling"
Co-authored-by: ciaradunks <[email protected]>
b20978f to
d94f610
Compare
| * :ref:`Levelized cost of energy (LCOE) <lcoe>` of the energy system, in electricity equivalent | ||
| * :ref:`Levelized cost of an energy carrier <lcoe>` in electricity equivalent (LCOEleq) for each energy carrier in the energy system | ||
| * :ref:`Levelized cost of asset dispatch <lcoe_asset>`, calculated from the annuity of an asset and their throughput | ||
| * :ref:`NPC <costs_total>` and annuity of the whole energy system |
There was a problem hiding this comment.
Are you sure you want to replace net present cost by cost_total. If yes, why call this variable NPC then? I find it confusing. LCOE is explicitly named before being abbreviated below but NPC not
There was a problem hiding this comment.
Yes, the name in the .csv for costs_total is also NPC (https://multi-vector-simulator.readthedocs.io/en/latest/model/simulation_outputs.html#net-present-costs-npc-costs-total) we could also use Net present costs here, though.
At some point we should actually change costs_total into NPC directly in the code, so that it is also displayed correctly in the report. Multiple ways to do this (either translate for the report/outputs only, or translate when adding the keys to the dict_values)
Adresses #873
Changes proposed in this pull request:
❌ Create table (
MVS_output_list.csv) with following column headings::Definition:,valid_interval,:Type:,:Unit:,label,ref,categories (economic, technical, environemental? --> technical),see_also-> already implemented with fileMVS_kpi_list.csv.incand so on.inccreated with 3b63e37, applied with a211ccfMVS_kpis_list.csvwith content, useMVS_output_parameters_tooltips.xlsxto start withMVS_kpi_categories.csv, relating to the:categories:inMVS_kpis_list.csv: 42707f0MVS_kpis_list.csvfor completenessconstants_json_strings.pyand remove all spacesThe following steps were realized, as well (if applies):
black . --exclude docs/)EXECUTE_TESTS_ON=master pytest)