Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate backend options #9899

Merged
merged 2 commits into from
Jan 29, 2025
Merged

Conversation

yngve-sk
Copy link
Contributor

Issue
Resolves #9773

@yngve-sk yngve-sk self-assigned this Jan 29, 2025
Copy link

codspeed-hq bot commented Jan 29, 2025

CodSpeed Performance Report

Merging #9899 will not alter performance

Comparing yngve-sk:25.01.29.remove-backend (445eefc) with main (83ea886)

Summary

✅ 25 untouched benchmarks

@yngve-sk yngve-sk force-pushed the 25.01.29.remove-backend branch from 7168afb to 50a0833 Compare January 29, 2025 08:34
Copy link
Contributor

@verveerpj verveerpj left a comment

Choose a reason for hiding this comment

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

Looks good, but some comments.

src/everest/config/optimization_config.py Outdated Show resolved Hide resolved
src/everest/config/sampler_config.py Outdated Show resolved Hide resolved
src/everest/optimizer/everest2ropt.py Outdated Show resolved Hide resolved
Comment on lines 69 to 75
message = (
"sampler.backend is deprecated. "
"The correct backend will be inferred by the method. "
"If several backends have a method named A and you want to pick "
"a specific backend B, put B/A in sampler.method."
)
print(message)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this deprecation message come from everest/config/sampler_config.py ?

Comment on lines 271 to 277
message = (
"optimization.backend is deprecated. "
"The correct backend will be inferred by the algorithm. "
"If several backends have an algorithm named A and you want to pick "
"a specific backend B, put B/A in optimization.algorithm."
)
print(message)
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't this be part of everest/config/optimization_config.py

@yngve-sk yngve-sk force-pushed the 25.01.29.remove-backend branch 2 times, most recently from 4f23b33 to 3a6dcaf Compare January 29, 2025 11:20
Copy link
Contributor

@verveerpj verveerpj left a comment

Choose a reason for hiding this comment

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

LGTM!

@yngve-sk yngve-sk force-pushed the 25.01.29.remove-backend branch from 3f0f631 to 445eefc Compare January 29, 2025 11:36
@yngve-sk yngve-sk merged commit 3b6f51e into equinor:main Jan 29, 2025
27 checks passed
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.

Remove backend options from the Everest configuration
3 participants