Skip to content

Commit

Permalink
Linting fix
Browse files Browse the repository at this point in the history
  • Loading branch information
wshainin committed Jun 27, 2024
1 parent dbd90f1 commit 5696e63
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/agent0/traiderdaive/gym_environments/full_hyperdrive_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,8 @@ def __init__(
chain_port = 10002

local_chain_config = LocalChain.Config(
block_timestamp_interval=12,
db_port=db_port,
chain_port=chain_port,
calc_pnl=False)
block_timestamp_interval=12, db_port=db_port, chain_port=chain_port, calc_pnl=False
)

initial_pool_config = LocalHyperdrive.Config()
self.chain = LocalChain(local_chain_config)
Expand Down Expand Up @@ -553,9 +551,8 @@ def _calculate_reward(self) -> float:
# The total delta for this episode

current_wallet = self.interactive_hyperdrive.get_positions(
show_closed_positions=True,
calc_pnl=True,
coerce_float=True)
show_closed_positions=True, calc_pnl=True, coerce_float=True
)
# Filter by rl bot
rl_bot_wallet = current_wallet[current_wallet["wallet_address"] == self.rl_bot.address]
# The rl_bot_wallet shows the pnl of all positions
Expand Down

0 comments on commit 5696e63

Please sign in to comment.