Skip to content

Commit

Permalink
import export change by positive or negative
Browse files Browse the repository at this point in the history
  • Loading branch information
yunusozsahin committed Jul 17, 2019
1 parent 0d101cb commit a67f72c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions urbs/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ def get_timeseries(instance, stf, com, sites, timesteps=None):
imported = imported.loc[timesteps].xs(
[stf, com], level=['stf', 'com'])
imported = imported.unstack(level='tra').sum(axis=1)
#exported_help = imported.loc[imported < 0]
#imported.loc[imported >= 0]
imported = imported.unstack(
level='sit_')[sites].fillna(0).sum(
axis=1)
Expand Down

0 comments on commit a67f72c

Please sign in to comment.