Skip to content

Support an automatic config_overrides.json layer for seamless pre-game calibration #7

Description

@JFrusher

By default, calibrate outputs proposed changes for a human to manually review and edit in config.py. While keeping manual control is great, it would be really convenient before a match to run a flag that auto-applies calculated weights without manually editing python files.
To keep things clean, we shouldn't modify config.py programmatically. Instead, we can write applied values to a separate config_overrides.json file. Suggested fix:
Make config.py check for and load config_overrides.json if it exists. Add a --apply flag to calibrate that automatically writes the proposed weights into config_overrides.json.
Definition of Done:
Running calibrate --apply updates runtime classification behavior instantly. Deleting config_overrides.json safely reverts everything back to default without touching config.py.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions