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

Add draft for parameter config #10095

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

Conversation

xjules
Copy link
Contributor

@xjules xjules commented Feb 18, 2025

Issue
Resolves #10088

Approach
Make new scalar parameter config

  • PR title captures the intent of the changes, and is fitting for release notes.
  • Added appropriate release note label
  • Commit history is consistent and clean, in line with the contribution guidelines.
  • Make sure unit tests pass locally after every commit (git rebase -i main --exec 'just rapid-tests')

When applicable

  • When there are user facing changes: Updated documentation
  • New behavior or changes to existing untested code: Ensured that unit tests are added (See Ground Rules).
  • Large PR: Prepare changes in small commits for more convenient review
  • Bug fix: Add regression test for the bug
  • Bug fix: Create Backport PR to latest release

@xjules xjules self-assigned this Feb 18, 2025
@xjules xjules added the release-notes:refactor PR changes code without changing ANY (!) behavior. label Feb 18, 2025
Copy link

codspeed-hq bot commented Feb 18, 2025

CodSpeed Performance Report

Merging #10095 will not alter performance

Comparing xjules:draft_paramcfg (33ef660) with main (cd27051)

Summary

✅ 25 untouched benchmarks



@dataclass
class TransUnifSettings:
Copy link
Contributor Author

@xjules xjules Feb 24, 2025

Choose a reason for hiding this comment

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

TODO: All distributions should contain LOG10 property
This will be handled directly by the type of distribution.

if group_name not in transformed_dict:
transformed_dict[group_name] = {}
transformed_dict[group_name][param_name] = transformed_value
# todo log handling when distribution requires it
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: here is also the place that we need to handle template_file / output_file!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

First draft of the treatment of template / output file is in place.

]
)

def save_parameters(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

TODO: redesign API for save_parameters?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes:refactor PR changes code without changing ANY (!) behavior.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Draft a new ParameterConfig given assumption that all parameter names are unique
1 participant