Skip to content

Commit

Permalink
changed return and surplus according to wiki definition
Browse files Browse the repository at this point in the history
changed return and surplus according to wiki definition
  • Loading branch information
mamahfouz authored Oct 16, 2020
2 parents 2959adf + 3be15aa commit 2bd3559
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 2bd3559

Please sign in to comment.