Skip to content

Migrate ExitCriteria parameters to Ensemble.run()#1747

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

Migrate ExitCriteria parameters to Ensemble.run()#1747
jlnav wants to merge 6 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 added 2 commits June 5, 2026 13:37
…sim_max=30). merge ExitCriteria and .run parameters if both exist. Display associated deprecation warnings
@jlnav jlnav marked this pull request as ready for review June 11, 2026 18:19
@jlnav jlnav marked this pull request as draft July 8, 2026 17:57
@jlnav jlnav marked this pull request as ready for review July 14, 2026 16:41
…lways send data packet using persis_in even if its not set
@codecov

codecov Bot commented Jul 14, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 96.66667% with 1 line in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (refactor/deprecate_some_allocs@082c505). Learn more about missing BASE report.

Files with missing lines Patch % Lines
libensemble/ensemble.py 96.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@                        Coverage Diff                        @@
##             refactor/deprecate_some_allocs    #1747   +/-   ##
=================================================================
  Coverage                                  ?   76.95%           
=================================================================
  Files                                     ?       81           
  Lines                                     ?     8405           
  Branches                                  ?     1290           
=================================================================
  Hits                                      ?     6468           
  Misses                                    ?     1690           
  Partials                                  ?      247           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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