Skip to content

Examples/optimas ax generators#1635

Open
shuds13 wants to merge 24 commits intoexperimental/jlnav_plus_shuds_asktellfrom
examples/optimas_ax_generators
Open

Examples/optimas ax generators#1635
shuds13 wants to merge 24 commits intoexperimental/jlnav_plus_shuds_asktellfrom
examples/optimas_ax_generators

Conversation

@shuds13
Copy link
Member

@shuds13 shuds13 commented Dec 10, 2025

Re: #1634

  • Implement atleast single/multi fidelity and multi-task
  • Test with history
  • Change to treat _id as its own history field (instead of mapping to sim_id).
  • extra CI uses Optimas on multitask_uses_id branch - rem to change (prob bring that in first).
  • Extra tests must pass
  • Check APOSMM in xopt works and all other combos still work with new way _id is treated.
  • Is extra tests still restricted to new ones. Make sure all tests enabled when pull in

@codecov
Copy link

codecov bot commented Dec 12, 2025

Codecov Report

❌ Patch coverage is 42.85714% with 24 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.26%. Comparing base (38aa584) to head (a9b76ef).

Files with missing lines Patch % Lines
libensemble/specs.py 18.18% 8 Missing and 1 partial ⚠️
libensemble/utils/misc.py 50.00% 2 Missing and 3 partials ⚠️
libensemble/history.py 0.00% 2 Missing and 2 partials ⚠️
libensemble/manager.py 60.00% 2 Missing and 2 partials ⚠️
libensemble/utils/runners.py 71.42% 1 Missing and 1 partial ⚠️
Additional details and impacted files
@@                            Coverage Diff                            @@
##           experimental/jlnav_plus_shuds_asktell    #1635      +/-   ##
=========================================================================
- Coverage                                  78.44%   78.26%   -0.19%     
=========================================================================
  Files                                         81       81              
  Lines                                       8176     8207      +31     
  Branches                                    1239     1253      +14     
=========================================================================
+ Hits                                        6414     6423       +9     
- Misses                                      1535     1549      +14     
- Partials                                     227      235       +8     

☔ View full report in Codecov by Sentry.
📢 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.

# Set inputs: same as persis_in for gest-api generators (needed for H0 ingestion)
if not self.inputs and self.generator is not None:
self.inputs = self.persis_in
print(f"inputs: {self.inputs}")
Copy link
Member Author

Choose a reason for hiding this comment

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

careful

@shuds13 shuds13 requested a review from jlnav February 12, 2026 17:58
if not isinstance(list_dicts, list):
return list_dicts

if not list_dicts:
Copy link
Member

Choose a reason for hiding this comment

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

Is this to accommodate

gen.ask(0) ??

Either way it looks like a safe/faster fix

self.resources.resource_manager.free_rsets(w)

def _ensure_sim_id_in_persis_in(self, D: npt.NDArray) -> None:
"""Add sim_id to gen_specs persis_in if generator output contains sim_id (gest-api style generators only)"""
Copy link
Member

Choose a reason for hiding this comment

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

And such gens will only return sim_id if we're already explicitly mapping _id to it... right?

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