Skip to content

Commit

Permalink
Set default value for the "env" argument in agent constructors.
Browse files Browse the repository at this point in the history
  • Loading branch information
Biological Compatibility Benchmarks committed Dec 1, 2024
1 parent 37790ac commit 78debe1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aintelope/agents/example_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def __init__(
self,
agent_id: str,
trainer: Trainer,
env: Environment,
env: Environment = None,
cfg: DictConfig = None,
) -> None:
super().__init__(
Expand Down
2 changes: 1 addition & 1 deletion aintelope/agents/q_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def __init__(
self,
agent_id: str,
trainer: Trainer,
env: Environment,
env: Environment = None,
cfg: DictConfig = None,
) -> None:
self.id = agent_id
Expand Down

0 comments on commit 78debe1

Please sign in to comment.