Skip to content

Commit

Permalink
changed return and surplus according to wiki definition
Browse files Browse the repository at this point in the history
  • Loading branch information
selimamrouni committed Oct 2, 2020
1 parent ff302ad commit 3be15aa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/read_agent_logs.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
fcp = df.loc[df['EventType'] == 'FINAL_CASH_POSITION', 'Event'][0]
fv = df.loc[df['EventType'] == 'MARKED_TO_MARKET', 'Event'][0]

ret = ec - sc
surp = fcp - sc + fv
ret = fcp - sc
surp = fv - sc
stats.append({ 'AgentType' : at, 'Return' : ret, 'Surplus' : surp })
except (IndexError, KeyError):
continue
Expand Down

0 comments on commit 3be15aa

Please sign in to comment.