Skip to content

Commit

Permalink
add policy market simulation
Browse files Browse the repository at this point in the history
  • Loading branch information
maurerle committed Nov 10, 2023
1 parent 27d1ff0 commit be054d1
Show file tree
Hide file tree
Showing 5 changed files with 1,019 additions and 0 deletions.
6 changes: 6 additions & 0 deletions assume/common/outputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,12 @@ def write_market_orders(self, market_orders, market_id):

market_orders = separate_orders(market_orders)
df = pd.DataFrame.from_records(market_orders, index="start_time")
if "eligible_lambda" in df.columns:
df["eligible_lambda"] = df["eligible_lambda"].apply(lambda x: x.__name__)

Check warning on line 303 in assume/common/outputs.py

View check run for this annotation

Codecov / codecov/patch

assume/common/outputs.py#L303

Added line #L303 was not covered by tests
if "evaluation_frequency" in df.columns:
df["evaluation_frequency"] = df["evaluation_frequency"].apply(

Check warning on line 305 in assume/common/outputs.py

View check run for this annotation

Codecov / codecov/patch

assume/common/outputs.py#L305

Added line #L305 was not covered by tests
lambda x: repr(x)
)

del df["only_hours"]
del df["agent_id"]
Expand Down
Loading

0 comments on commit be054d1

Please sign in to comment.