From f64ba1d2de9ca3ff9e3f51be6e1ffc80d0bde359 Mon Sep 17 00:00:00 2001 From: Marie-Claire Date: Tue, 23 Mar 2021 19:33:43 +0100 Subject: [PATCH 1/2] Adapt processing of evaluated period --- pvcompare/check_inputs.py | 2 +- tests/test_check_inputs.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pvcompare/check_inputs.py b/pvcompare/check_inputs.py index 1ab9aac1..89b4565e 100644 --- a/pvcompare/check_inputs.py +++ b/pvcompare/check_inputs.py @@ -519,7 +519,7 @@ def add_evaluated_period_to_simulation_settings(time_series, user_inputs_mvs_dir mvs_filename="simulation_settings.csv", mvs_row="evaluated_period", mvs_column="simulation_settings", - pvcompare_parameter=int(length), + pvcompare_parameter=length, warning=False, ) diff --git a/tests/test_check_inputs.py b/tests/test_check_inputs.py index ed423738..62fd1286 100644 --- a/tests/test_check_inputs.py +++ b/tests/test_check_inputs.py @@ -317,7 +317,7 @@ def test_add_evaluated_period_to_simulation_settings(self): file = pd.read_csv(filename, index_col=0, header=0,) assert ( - int(file.at["evaluated_period", "simulation_settings"]) + float(file.at["evaluated_period", "simulation_settings"]) == len(ts.index) / 24 ) From 5430372ac62aee6fc1ddaed3fe6d23e5e1bc03d0 Mon Sep 17 00:00:00 2001 From: Marie-Claire Date: Wed, 24 Mar 2021 09:28:09 +0100 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cf8cc8c8..df4b9d46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -22,7 +22,7 @@ Here is a template for new release sections ### Added - ### Changed -- +- The evaluated period is no longer processed as integer but as float. Hence it is possible to simulate time periods that are for instance shorter than a day (#265) ### Removed - ### Fixed