avoid infinity in sector rations
This commit is contained in:
parent
49053f3fb7
commit
50c2fee6ce
@ -80,6 +80,7 @@ Unit of the output file is MWh/t.
|
||||
"""
|
||||
|
||||
import pandas as pd
|
||||
import numpy as np
|
||||
from prepare_sector_network import get
|
||||
|
||||
|
||||
@ -104,7 +105,7 @@ def build_industry_sector_ratios_intermediate():
|
||||
snakemake.input.industry_sector_ratios, index_col=0
|
||||
)
|
||||
|
||||
today_sector_ratios = demand.div(production, axis=1)
|
||||
today_sector_ratios = demand.div(production, axis=1).replace([np.inf, -np.inf], 0)
|
||||
|
||||
today_sector_ratios.dropna(how="all", axis=1, inplace=True)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user