Skip to content

Added policy parametrization from kwargs#301

Merged
mdr223 merged 3 commits into
mainfrom
policy_override
Apr 13, 2026
Merged

Added policy parametrization from kwargs#301
mdr223 merged 3 commits into
mainfrom
policy_override

Conversation

@vitaglianog
Copy link
Copy Markdown
Collaborator

Fixing a minor bug where when calling the optimize_and_run() method with a policy kwarg, e.g., dataset.optimize_and_run(max_quality=True, validator=vdt, config=pz_config), the resulting code was parsing the policy but not adding it to the config object.
Added the following line after the call to policy = construct_policy_from_kwargs(**kwargs):

config.policy = policy

@vitaglianog vitaglianog requested a review from mdr223 April 13, 2026 20:10
Copy link
Copy Markdown
Collaborator

@mdr223 mdr223 left a comment

Choose a reason for hiding this comment

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

Approved!

@mdr223 mdr223 merged commit 807ed30 into main Apr 13, 2026
6 of 7 checks passed
@mdr223 mdr223 deleted the policy_override branch April 13, 2026 20:29
claire-mao pushed a commit that referenced this pull request May 1, 2026
* Added policy parametrization from kwargs

* Added policy parametrization from kwargs

* bump version

---------

Co-authored-by: Matthew Russo <mdrusso@mit.edu>
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