Skip to content

Commit

Permalink
fix: Update Python test modules to new metric set schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
jetuk committed Feb 12, 2024
1 parent 5251f47 commit b17c5a7
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 19 deletions.
25 changes: 20 additions & 5 deletions pywr-python/tests/models/aggregated-node1/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,26 @@
{
"name": "nodes",
"metrics": [
"input1",
"link1",
"link2",
"output1",
"agg-node"
{
"type": "Default",
"node": "input1"
},
{
"type": "Default",
"node": "link1"
},
{
"type": "Default",
"node": "link2"
},
{
"type": "Default",
"node": "output1"
},
{
"type": "Default",
"node": "agg-node"
}
]
}
],
Expand Down
25 changes: 20 additions & 5 deletions pywr-python/tests/models/piecewise-link1/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,26 @@
{
"name": "nodes",
"metrics": [
"input1",
"link1",
"mrf1",
"demand1",
"term1"
{
"type": "Default",
"node": "input1"
},
{
"type": "Default",
"node": "link1"
},
{
"type": "Default",
"node": "mrf1"
},
{
"type": "Default",
"node": "demand1"
},
{
"type": "Default",
"node": "term1"
}
]
}
],
Expand Down
15 changes: 12 additions & 3 deletions pywr-python/tests/models/simple-custom-parameter/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,18 @@
{
"name": "nodes",
"metrics": [
"input1",
"link1",
"output1"
{
"type": "Default",
"node": "input1"
},
{
"type": "Default",
"node": "link1"
},
{
"type": "Default",
"node": "output1"
}
]
}
],
Expand Down
15 changes: 12 additions & 3 deletions pywr-python/tests/models/simple-storage-timeseries/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,18 @@
{
"name": "nodes",
"metrics": [
"input1",
"storage1",
"output1"
{
"type": "Default",
"node": "input1"
},
{
"type": "Default",
"node": "storage1"
},
{
"type": "Default",
"node": "output1"
}
]
}
],
Expand Down
15 changes: 12 additions & 3 deletions pywr-python/tests/models/simple-timeseries/model.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,18 @@
{
"name": "nodes",
"metrics": [
"input1",
"link1",
"output1"
{
"type": "Default",
"node": "input1"
},
{
"type": "Default",
"node": "link1"
},
{
"type": "Default",
"node": "output1"
}
]
}
],
Expand Down

0 comments on commit b17c5a7

Please sign in to comment.