Skip to content
This repository was archived by the owner on Nov 24, 2021. It is now read-only.

Commit 76919de

Browse files
authored
Merge pull request #12 from covid-modeling/gorzell/idm-covasim
api: Add model-slug for idm-covasim.
2 parents fadec00 + b9fedbe commit 76919de

File tree

6 files changed

+53
-4
lines changed

6 files changed

+53
-4
lines changed

packages/api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@covid-modeling/api",
3-
"version": "0.9.0",
3+
"version": "0.9.1",
44
"main": "dist/src/index",
55
"types": "dist/src/index.d.ts",
66
"scripts": {

packages/api/schema/runner.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,8 @@
126126
"enum": [
127127
"mrc-ide-covid-sim",
128128
"basel",
129-
"mc19"
129+
"mc19",
130+
"idm-covasim"
130131
],
131132
"type": "string"
132133
},

packages/api/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export enum ModelSlug {
2929
MRCIDECovidSim = 'mrc-ide-covid-sim',
3030
Basel = 'basel',
3131
MC19 = 'mc19',
32+
IDMCovasim = 'idm-covasim',
3233
}
3334

3435
export interface Model {

packages/model-runner/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@covid-modeling/model-runner",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"main": "dist/index.js",
55
"scripts": {
66
"test": "PATH=$PATH:../../node_modules/.bin && mocha --debug-brk --ui tdd -r ts-node/register test/unit/*-test.ts",
@@ -19,7 +19,7 @@
1919
"dependencies": {
2020
"@azure/identity": "^1.1.0-preview1",
2121
"@azure/storage-blob": "^12.1.1",
22-
"@covid-modeling/api": "0.9.*",
22+
"@covid-modeling/api": "0.9.1",
2323
"archiver": "^4.0.1",
2424
"d3": "^5.15.0",
2525
"dockerode": "^3.2.0",
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"id": "my-model-run-id",
3+
"callbackURL": null,
4+
"models": [
5+
{
6+
"slug": "idm-covasim",
7+
"imageURL": "docker.pkg.github.com/covid-modeling/covasim-connector/covasim-connector:master"
8+
}
9+
],
10+
"configuration": {
11+
"region": "US",
12+
"subregion": "US-NY",
13+
"parameters": {
14+
"calibrationDate": "2020-04-18",
15+
"calibrationCaseCount": 1400,
16+
"calibrationDeathCount": 200,
17+
"interventionPeriods": [
18+
{
19+
"startDate": "2020-03-18",
20+
"reductionPopulationContact": 10,
21+
"socialDistancing": "moderate"
22+
},
23+
{
24+
"startDate": "2020-03-22",
25+
"reductionPopulationContact": 34,
26+
"socialDistancing": "moderate",
27+
"schoolClosure": "aggressive"
28+
},
29+
{
30+
"startDate": "2020-03-23",
31+
"reductionPopulationContact": 64,
32+
"socialDistancing": "aggressive",
33+
"schoolClosure": "aggressive"
34+
},
35+
{
36+
"startDate": "2020-07-01",
37+
"reductionPopulationContact": 0
38+
}
39+
],
40+
"r0": null
41+
}
42+
}
43+
}

packages/model-runner/test/test-job-matrix.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
{
1414
"slug": "mc19",
1515
"imageURL": "docker.pkg.github.com/covid-modeling/model-runner/modelingcovid-covidmodel-connector:master"
16+
},
17+
{
18+
"slug": "idm-covasim",
19+
"imageURL": "docker.pkg.github.com/covid-modeling/covasim-connector/covasim-connector:master"
1620
}
1721
],
1822
"configuration": {

0 commit comments

Comments
 (0)