Skip to content

Commit cabe532

Browse files
committed
replace missing values in scenario data with zeroes
1 parent 8cd1834 commit cabe532

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pathways/pathways.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,6 +406,9 @@ def _get_scenarios(self, scenario_data: pd.DataFrame) -> xr.DataArray:
406406
.to_xarray()
407407
)
408408

409+
# fill missing values with zeros
410+
data = data.fillna(0)
411+
409412
# convert values under "model" column to lower case
410413
data.coords["model"] = [x.lower() for x in data.coords["model"].values]
411414

0 commit comments

Comments
 (0)