Skip to content

Commit a04dfbe

Browse files
macflo8khaeru
authored andcommitted
Replace inf values in materials reporter
1 parent c721f11 commit a04dfbe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

message_ix_models/model/material/report/run_reporting.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
from typing import List, Literal
33

44
import message_ix
5+
import numpy as np
56
import pandas as pd
67
import pyam
78
from message_ix.report import Reporter
@@ -476,6 +477,7 @@ def split_fe_other(
476477
variable=f"Share|{c}-methanol",
477478
)
478479
)
480+
to_append = pyam.IamDataFrame(to_append.data.replace([np.inf, -np.inf], 0))
479481
py_df_all = pyam.concat([py_df_all, to_append])
480482
updated_rows = []
481483

0 commit comments

Comments
 (0)