Create a new parameter for scenario description#722
Conversation
495d7be to
aa3216c
Compare
|
It works as intended. See the attached simulation report below. I added the scenario description to the report. |
f55fdcd to
636d809
Compare
Oh neat! Great idea to add an additional header :) I will not be able to review this today. @SabineHaas if you like the feature for |
sorry I haven't seen that before the release |
That's fine, did not expect you to include it anyway. Fyi: in the beginning of January we will fix a JSON input file for the EPA, so from there on out all new parameters must not require an API change anymore. Possible great news for @Piranias, especially if we don't implement this in the MVS-EPA parser but require this for the CSV files as well. |
a43f558 to
848005b
Compare
197b0a3 to
18615b0
Compare
18615b0 to
e6a261b
Compare
|
One of the tests is failing. I did not write any tests in this, nor did I touch any of those tests. Can you please take a look at it? Otherwise, the PR is done. |
smartie2076
left a comment
There was a problem hiding this comment.
Hi @mahendrark!
There should be many more files that need to be adapted - see folders input_template and tests/benchmark_test_inputs. Also, you should specifically search for .json input files - there, the default parameters are not added from EXTRA_CSV_PARAMETERS (this is only applied when reading csv, not json as an input file). This is the reason for one of the test failures:
E AssertionError: In path /home/runner/work/multi-vector-simulator/multi-vector-simulator/tests/benchmark_test_inputs/rerun/mvs_config.json, the following parameters are missing:{'project_data': ['scenario_description']}
E assert 'missing_parameters' not in {'extra_parameters': {'economic_data': ['crf', 'annuity_factor'], 'paths_to_plots': [], 'project_data': ['sectors'], '...er', 'path_input_folder', 'end_date', 'time_index']}, 'missing_parameters': {'project_data': ['scenario_description']}}
Can you create an issue that mentions this? For that, please also try running /home/runner/work/multi-vector-simulator/multi-vector-simulator/tests/benchmark_test_inputs/rerun/mvs_config.json with the MVS (-ext json), and add the error message. Post the json file into the issue as well as you manually fixed version.
|
Regarding the other pytest error I suspect that this might be an issue with the defined datatype/unit which should be string. It seems to think that the string of |
|
@smartie2076 all problems are fixed now. Ready for review :))) |
84c1dcc to
a45dfed
Compare
|
Commits are more meaningful now as well! |
a45dfed to
d3fe7fd
Compare
tests/benchmark_test_inputs/AD_grid_diesel/csv_elements/project_data.csv
Show resolved
Hide resolved
Bachibouzouk
left a comment
There was a problem hiding this comment.
Nice job @mahendrark
@smartie2076 would the change to docs/MVS_parameters_list.csv cause trouble in dev? This is the last thing we would prevent me from merging this one now ;)
|
Something strange happened to this branch when I tried to pull your changes. I solved the merge conflicts and committed it and then now it says I have 19 commits. Can you please take a look and tell me how to fix this? |
dadcfae to
d3fe7fd
Compare
d3fe7fd to
98b38cc
Compare
I think it would be better to delete the first numbered column of the file first in a new PR, merge that into dev and then merge into this one. We have had 4 or 5 PRs now that changed the file, and each may corrupt it or revert the previous changes :´( Other problem: When you merge this, you need to include it in the parser of #675, as we do not add the default values for new parameters when reading from json (#750). |
|
After the tests pass @mahendrark you can merge this PR :) |
Fix #184
Changes proposed in this pull request:
The following steps were realized, as well (if applies):
black . --exclude docs/)EXECUTE_TESTS_ON=master pytest)Please mark above checkboxes as following:
❌ Check not applicable to this PR
For more information on how to contribute check the CONTRIBUTING.md.