Skip to content

Commit

Permalink
Fixed precommit issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelalonsojr committed Nov 22, 2023
1 parent 81e0baa commit 1e5bf1c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docs/Python-LLAPI-Documentation.md
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ class UnityEnvironment(BaseEnv)
#### \_\_init\_\_

```python
| __init__(file_name: Optional[str] = None, worker_id: int = 0, base_port: Optional[int] = None, seed: int = 0, no_graphics: bool = False, timeout_wait: int = 60, additional_args: Optional[List[str]] = None, side_channels: Optional[List[SideChannel]] = None, log_folder: Optional[str] = None, num_areas: int = 1)
| __init__(file_name: Optional[str] = None, worker_id: int = 0, base_port: Optional[int] = None, seed: int = 0, no_graphics: bool = False, no_graphics_monitor: bool = False, timeout_wait: int = 60, additional_args: Optional[List[str]] = None, side_channels: Optional[List[SideChannel]] = None, log_folder: Optional[str] = None, num_areas: int = 1)
```

Starts a new unity environment and establishes a connection with the environment.
Expand All @@ -646,6 +646,7 @@ Ensure that the network where training takes place is secure.
If no environment is specified (i.e. file_name is None), the DEFAULT_EDITOR_PORT will be used.
:int worker_id: Offset from base_port. Used for training multiple environments simultaneously.
:bool no_graphics: Whether to run the Unity simulator in no-graphics mode
:bool no_graphics_monitor: Whether to run the main worker in graphics mode, with the remaining in no-graphics mode
:int timeout_wait: Time (in seconds) to wait for connection from environment.
:list args: Addition Unity command line arguments
:list side_channels: Additional side channel for no-rl communication with Unity
Expand Down
4 changes: 2 additions & 2 deletions ml-agents/mlagents/trainers/cli_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,8 +302,8 @@ def _create_parser() -> argparse.ArgumentParser:
default=False,
action=DetectDefaultStoreTrue,
help="Whether to run the main Unity worker in graphics mode with the remaining workers in no graphics mode"
"(i.e. without initializing the graphics driver. Use this only if your agents don't use visual "
"observations.",
"(i.e. without initializing the graphics driver. Use this only if your agents don't use visual "
"observations.",
)

torch_conf = argparser.add_argument_group(title="Torch Configuration")
Expand Down

0 comments on commit 1e5bf1c

Please sign in to comment.