Skip to content

Commit

Permalink
Fix: fill missing surveillance counts with 0 instead of lirping betwe…
Browse files Browse the repository at this point in the history
…en known values (#641)
  • Loading branch information
atc3 authored Feb 1, 2024
1 parent 1aaf38b commit c2932d1
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/vega_specs/surveillance.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,22 @@
"expr": "if(indata('valid_groups', 'group', datum.group), true, false)",
"as": "valid"
},
{
"type": "impute",
"groupby": ["group", "region"],
"key": "collection_period",
"field": "percent",
"method": "value",
"value": 0
},
{
"type": "impute",
"groupby": ["group", "region"],
"key": "collection_period",
"field": "count",
"method": "value",
"value": 0
},
{
"type": "collect",
"sort": {
Expand Down
16 changes: 16 additions & 0 deletions src/vega_specs/surveillance_standalone_rsv.vg.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,22 @@
"expr": "if(indata('valid_groups', 'group', datum.group), true, false)",
"as": "valid"
},
{
"type": "impute",
"groupby": ["group", "region"],
"key": "collection_period",
"field": "percent",
"method": "value",
"value": 0
},
{
"type": "impute",
"groupby": ["group", "region"],
"key": "collection_period",
"field": "count",
"method": "value",
"value": 0
},
{
"type": "collect",
"sort": {
Expand Down

0 comments on commit c2932d1

Please sign in to comment.