Skip to content

Commit

Permalink
Fix a default name in a launch script and slightly improve readability.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 671271512
Change-Id: I1bec7bfd6edf6293293c6a22b3efd12fe99fd20f
  • Loading branch information
jzleibo authored and copybara-github committed Sep 5, 2024
1 parent fe70bf8 commit 46b06bb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
7 changes: 4 additions & 3 deletions examples/modular/launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,10 @@

# Setup for command line arguments
parser = argparse.ArgumentParser(description='Run a GDM-Concordia simulation.')
parser.add_argument(
'--agent', action='store', default='basic_agent', dest='agent_name'
)
parser.add_argument('--agent',
action='store',
default='basic_agent',
dest='agent_name')
parser.add_argument('--environment',
action='store',
default='reality_show',
Expand Down
12 changes: 5 additions & 7 deletions examples/modular/launch_resident_visitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,13 @@

# Setup for command line arguments
parser = argparse.ArgumentParser(description='Run a GDM-Concordia simulation.')
parser.add_argument(
'--agent_resident',
action='store',
default='basic_agent',
dest='resident_agent_name',
)
parser.add_argument('--agent_resident',
action='store',
default='basic_agent',
dest='resident_agent_name')
parser.add_argument('--agent_visitor',
action='store',
default='rational_agent__main_role',
default='rational_agent',
dest='visitor_agent_name')
parser.add_argument('--environment',
action='store',
Expand Down

0 comments on commit 46b06bb

Please sign in to comment.