Skip to content

Commit

Permalink
Plotting/reporting for all commodities
Browse files Browse the repository at this point in the history
  • Loading branch information
lodersky committed Apr 4, 2019
1 parent 9f4b60e commit a9cbd3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions urbs/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,13 +120,13 @@ def get_timeseries(instance, stf, com, sites, timesteps=None):

# PROCESS
created = get_entity(instance, 'e_pro_out')
created = created.xs([stf, com], level=['stf', 'com']).loc[timesteps]
try:
created = created.xs([stf, com], level=['stf', 'com']).loc[timesteps]
created = created.unstack(level='sit')[sites].fillna(0).sum(axis=1)
created = created.unstack(level='pro')
created = drop_all_zero_columns(created)
except KeyError:
created = pd.DataFrame(index=timesteps)
created = pd.DataFrame(index=timesteps[1:])

consumed = get_entity(instance, 'e_pro_in')
try:
Expand Down

0 comments on commit a9cbd3c

Please sign in to comment.