Skip to content

Migrate ExitCriteria parameters to Ensemble.run()#1747

Open
jlnav wants to merge 8 commits into
refactor/deprecate_some_allocsfrom
refactor/run_substeps_with_deprecate_exitcriteria
Open

Migrate ExitCriteria parameters to Ensemble.run()#1747
jlnav wants to merge 8 commits into
refactor/deprecate_some_allocsfrom
refactor/run_substeps_with_deprecate_exitcriteria

Conversation

@jlnav

@jlnav jlnav commented Jun 5, 2026

Copy link
Copy Markdown
Member

ensemble.run() has already been an empty function. Passing in subsets, steps, num sims, num gens, etc. into .run() is (I think) sensible since this resembles Xopt's .step(n_points). It makes the parameters of exit criteria a description of the run instead of a description of the entire ensemble.

So ensemble.run(sim_max=2000, wallclock_max=300) is possible. Deprecates ExitCriteria. So now we save an import, a class instantiation, and a parameter for Ensemble

jlnav and others added 6 commits June 5, 2026 13:37
…sim_max=30). merge ExitCriteria and .run parameters if both exist. Display associated deprecation warnings
Bumps [crate-ci/typos](https://github.com/crate-ci/typos) from 1.47.1 to 1.47.2.
- [Release notes](https://github.com/crate-ci/typos/releases)
- [Changelog](https://github.com/crate-ci/typos/blob/master/CHANGELOG.md)
- [Commits](crate-ci/typos@v1.47.1...v1.47.2)

---
updated-dependencies:
- dependency-name: crate-ci/typos
  dependency-version: 1.47.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 6 to 7.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v6...v7)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
…evelop/crate-ci/typos-1.47.2

Bump crate-ci/typos from 1.47.1 to 1.47.2
…evelop/codecov/codecov-action-7

Bump codecov/codecov-action from 6 to 7
@jlnav jlnav marked this pull request as ready for review June 11, 2026 18:19
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.

1 participant