Skip to content

Commit

Permalink
change timestamp to timestep
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Mitri <[email protected]>
  • Loading branch information
pet-mit committed Feb 10, 2025
1 parent 7a25750 commit 0ff99e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/tests/cucumber/features/modeler-features/epic2/us2.5.feature
Original file line number Diff line number Diff line change
@@ -1,32 +1,32 @@
Feature: 2.5 - Pure modeler simple studies, with no ports and no timeseries

Scenario: 2.5.1: One model with one load and two generators, one timestamp
Scenario: 2.5.1: One model with one load and two generators, one timestep
Given the study path is "modeler/epic2/us2.5/study_2.5.1"
When I run antares modeler
Then the simulation succeeds
And the objective value is 160
And the optimal value of variable node1.gen1_p_0 is 80
And the optimal value of variable node1.gen2_p_0 is 20

Scenario: 2.5.2: One model with one load and two generators (minP), three timestamps
Scenario: 2.5.2: One model with one load and two generators (minP), three timesteps
Given the study path is "modeler/epic2/us2.5/study_2.5.2"
When I run antares modeler
Then the simulation succeeds
And the objective value is 810
And the optimal values of the variables are
| component | variable | timestamp | value |
| component | variable | timestep | value |
| node1 | gen1_up | 0-2 | 1 |
| node1 | gen1_p | 0-2 | 60 |
| node1 | gen1_up | 0-2 | 1 |
| node1 | gen2_p | 0-2 | 40 |

Scenario: 2.5.3: Two libs, one timestamp
Scenario: 2.5.3: Two libs, one timestep
Given the study path is "modeler/epic2/us2.5/study_2.5.3"
When I run antares modeler
Then the simulation succeeds
And the objective value is 15600
And the optimal values of the variables are
| component | variable | timestamp | value |
| component | variable | timestep | value |
| node1 | gen1_p | 0 | 0 |
| node1 | gen2_p | 0 | 100 |
| node2 | gen1_p | 0 | 500 |
Expand Down
2 changes: 1 addition & 1 deletion src/tests/cucumber/features/steps/common_steps/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def modeler_obj_value(context, value):
@step('the optimal values of the variables are')
def modeler_var_optimal_value(context):
for row in context.table:
ts_array = row["timestamp"].split("-")
ts_array = row["timestep"].split("-")
ts_start = int(ts_array[0])
ts_end = int(ts_array[1]) if len(ts_array) == 2 else ts_start
for ts in range(ts_start, ts_end + 1):
Expand Down

0 comments on commit 0ff99e5

Please sign in to comment.