Skip to content

Default params for get formations - #116

Merged
energy-in-joles merged 5 commits into
mainfrom
default_params_for_get_formations
Apr 8, 2026
Merged

energy-in-joles merged 5 commits into
mainfrom
default_params_for_get_formations

Conversation

@energy-in-joles

Copy link
Copy Markdown
Member

Allow better standardisation and also reduce redundant boilerplate params.

Copilot AI review requested due to automatic review settings April 8, 2026 11:56

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR standardizes formation generation by adding sensible defaults to get_formations, reducing repeated boilerplate across runners, simulator setup, and example strategy code.

Changes:

  • Added default values for n_right, n_left, and formation_type in config.formations.get_formations.
  • Updated call sites (runner, simulator env, tests, and example strategy) to rely on the new defaults where appropriate.
  • Cleaned up imports now made redundant by the defaulted parameters.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
utama_core/tests/strategy_runner/test_rsim_formations.py Removes explicit formation_type argument to rely on get_formations defaults in RSIM-related tests.
utama_core/tests/strategy_runner/test_grsim_sim_setup.py Removes explicit formation_type argument to rely on get_formations defaults in GRSIM setup tests.
utama_core/strategy/examples/startup_strategy.py Simplifies example strategy startup formation generation using get_formations(bounds) defaults.
utama_core/run/strategy_runner.py Removes explicit formation_type argument when generating spawn formations.
utama_core/rsoccer_simulator/src/ssl/envs/standard_ssl.py Removes explicit formation_type argument for standalone rsim formation initialization.
utama_core/config/formations.py Introduces default parameters for get_formations and updates related documentation.

Comment thread utama_core/config/formations.py
Comment thread utama_core/config/formations.py Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 8, 2026 12:02

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.

Comment thread utama_core/config/formations.py
@energy-in-joles
energy-in-joles merged commit 148fabf into main Apr 8, 2026
2 checks passed
@energy-in-joles
energy-in-joles deleted the default_params_for_get_formations branch April 8, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants