-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update default plugin-check configuration to include comparison …
- Loading branch information
1 parent
109d385
commit 24f5e56
Showing
19 changed files
with
257 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# yaml-language-server: $schema=../../node_modules/@sdeverywhere/plugin-check/node_modules/@sdeverywhere/check-core/schema/check.schema.json | ||
|
||
# | ||
# This is a simple example of "check" tests that exercise the model under different | ||
# input scenarios. For more guidance, consult the following wiki page: | ||
# https://github.com/climateinteractive/SDEverywhere/wiki/Testing-and-Comparing-Your-Model | ||
# | ||
|
||
- describe: Total inventory | ||
tests: | ||
- it: should be constant for years <= 2020 for all input scenarios | ||
scenarios: | ||
- preset: matrix | ||
datasets: | ||
- name: Total inventory | ||
predicates: | ||
- eq: 1000 | ||
time: | ||
before_incl: 2020 | ||
- it: should be in the range [1000,1300] for all input scenarios | ||
scenarios: | ||
- preset: matrix | ||
datasets: | ||
- name: Total inventory | ||
predicates: | ||
- gte: 1000 | ||
lte: 1300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# yaml-language-server: $schema=../../node_modules/@sdeverywhere/plugin-check/node_modules/@sdeverywhere/check-core/schema/comparison.schema.json | ||
|
||
# | ||
# This is a simple example of defining custom comparison scenarios, which allow you to see | ||
# how the behavior of the model compares to that of previous versions. For more guidance, | ||
# consult the following wiki page: | ||
# https://github.com/climateinteractive/SDEverywhere/wiki/Testing-and-Comparing-Your-Model | ||
# | ||
|
||
- scenario: | ||
title: Custom production scenario | ||
subtitle: early/gradual ramp-up | ||
with: | ||
- input: Production start year | ||
at: 2020 | ||
- input: Production years | ||
at: 25 | ||
- input: Production slope | ||
at: 2 | ||
|
||
- scenario: | ||
title: Custom production scenario | ||
subtitle: delayed/faster ramp-up | ||
with: | ||
- input: Production start year | ||
at: 2040 | ||
- input: Production years | ||
at: 30 | ||
- input: Production slope | ||
at: 5 | ||
|
||
- scenario: | ||
title: Custom production scenario | ||
subtitle: late/fast ramp-up | ||
with: | ||
- input: Production start year | ||
at: 2070 | ||
- input: Production years | ||
at: 10 | ||
- input: Production slope | ||
at: 10 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# yaml-language-server: $schema=../../node_modules/@sdeverywhere/plugin-check/node_modules/@sdeverywhere/check-core/schema/check.schema.json | ||
|
||
# | ||
# This is a simple example of "check" tests that exercise the model under different | ||
# input scenarios. For more guidance, consult the following wiki page: | ||
# https://github.com/climateinteractive/SDEverywhere/wiki/Testing-and-Comparing-Your-Model | ||
# | ||
|
||
- describe: Population Variables | ||
tests: | ||
- it: should be between 0 and 10000 for all input scenarios | ||
scenarios: | ||
- preset: matrix | ||
datasets: | ||
- name: Infectious Population I | ||
- name: Recovered Population R | ||
- name: Susceptible Population S | ||
predicates: | ||
- gte: 0 | ||
lte: 10000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# yaml-language-server: $schema=../../node_modules/@sdeverywhere/plugin-check/node_modules/@sdeverywhere/check-core/schema/comparison.schema.json | ||
|
||
# | ||
# This is a simple example of defining custom comparison scenarios, which allow you to see | ||
# how the behavior of the model compares to that of previous versions. For more guidance, | ||
# consult the following wiki page: | ||
# https://github.com/climateinteractive/SDEverywhere/wiki/Testing-and-Comparing-Your-Model | ||
# | ||
|
||
- scenario: | ||
title: Custom scenario | ||
subtitle: with avg duration=4 and contact rate=2 | ||
with: | ||
- input: Average Duration of Illness d | ||
at: 4 | ||
- input: Initial contact rate | ||
at: 2 | ||
|
||
- scenario: | ||
title: Custom scenario | ||
subtitle: with avg duration=4 and contact rate=4 | ||
with: | ||
- input: Average Duration of Illness d | ||
at: 4 | ||
- input: Initial contact rate | ||
at: 4 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.