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

update jktebop module to publish parameter validation rules #90

Open
SteveOv opened this issue Nov 8, 2024 · 0 comments
Open

update jktebop module to publish parameter validation rules #90

SteveOv opened this issue Nov 8, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@SteveOv
Copy link
Owner

SteveOv commented Nov 8, 2024

Any JKTEBOP parameter validation should be centralized into the jktebop.py module. For this to work it should publish a mechanism for querying the rules. Some options

  • is_param_valid(param: str, value: any, task: int) -> bool:
  • coerce_param(param: str, value: any, task: int, default_value: any=None) -> any:
    • returns value if it is valid
    • othewise returns default_value if given or nearest valid value if default_value is None

Need to think how/whether to make this handle interdependencies such as LD coeff range depending on the algo.

@SteveOv SteveOv added the enhancement New feature or request label Nov 8, 2024
@SteveOv SteveOv self-assigned this Nov 8, 2024
@SteveOv SteveOv changed the title update jktebop module to a public access to parameter validation rules update jktebop module to give public access to parameter validation rules Nov 8, 2024
@SteveOv SteveOv changed the title update jktebop module to give public access to parameter validation rules update jktebop module to publish parameter validation rules Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant