Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow for defining model comparison scenarios in YAML files #330

Merged
merged 55 commits into from
Jun 18, 2023

Conversation

chrispcampbell
Copy link
Contributor

Fixes #315

This includes a large set of changes to the model-check packages. It makes it possible to define comparison tests in yaml files similar to they way you can define check tests. (Previously the only way to define these was in code, which made them difficult to configure and update.) It includes support for defining custom "comparison views" which show a particular set of graphs for a given scenario.

It also includes many improvements to the model-check report interface, which now has a tabbed interface, improved navigation, and better annotations to show when tests are misconfigured. See issue for screenshots.

We've been using this branch internally for En-ROADS and C-ROADS for a few months and it's been working well, so I'm ready to merge this. No impact on other SDE packages. There are breaking changes in check-core and check-ui-shell packages but those are still considered implementation details, so I'm not flagging those. (The changes will impact anyone defining custom model-check tests or bundles, but I'm not sure anyone outside of Climate Interactive uses these features yet; if you do, get in touch on the discussion board and I can help you migrate.)

…ions to separate files and add "Compare" prefix to ScenarioInfo and DatasetInfo types
…les by id or custom alias

* add inputId to InputVar interface
* add inputAliases map to ModelSpec interface
* make inputGroups and datasetGroups optional in ModelSpec
* implement conversion of parsed specs to resolved CompareScenario instances
…y -> uid and derive from settings, add separate CompareScenarioDefKey type

[skip ci]
…key/specL/specR to CompareScenario

[skip ci]
@chrispcampbell chrispcampbell merged commit 426eab1 into main Jun 18, 2023
@chrispcampbell chrispcampbell deleted the chris/315-yaml-compare-scenarios branch June 18, 2023 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow for defining model comparison scenarios in YAML files
1 participant