prepare_sector_network: convert e_max_pu timeseries for msw stores to pd.DataFrame.
This commit is contained in:
parent
0c296aa28f
commit
7665de61d3
@ -2345,7 +2345,12 @@ def add_biomass(n, costs):
|
||||
carrier="municipal solid waste",
|
||||
)
|
||||
|
||||
e_max_pu = pd.Series([1] * (len(n.snapshots) - 1) + [0], index=n.snapshots)
|
||||
e_max_pu = np.array(
|
||||
len(spatial.msw.nodes) * [[1] * (len(n.snapshots) - 1) + [0]]
|
||||
).T
|
||||
e_max_pu = pd.DataFrame(
|
||||
e_max_pu, index=n.snapshots, columns=spatial.msw.nodes
|
||||
).astype(float)
|
||||
n.madd(
|
||||
"Store",
|
||||
spatial.msw.nodes,
|
||||
|
Loading…
Reference in New Issue
Block a user