Skip to content

Add DIFFSTARPOP_PBOUNDs namedtuple.#117

Merged
nvillanova merged 3 commits into
mainfrom
bounds_param_coll
May 19, 2026
Merged

Add DIFFSTARPOP_PBOUNDs namedtuple.#117
nvillanova merged 3 commits into
mainfrom
bounds_param_coll

Conversation

@nvillanova
Copy link
Copy Markdown
Collaborator

This PR includes a new namedtuple BOUNDS_DIFFSTARPOP_PARAMS that can be imported from diffstar.diffstarpop.
It has the same structure as DEFAULT_DIFFSTARPOP_PARAMS, but instead of storing the default scalar values, it stores tuples containing the lower and upper bounds for each parameter.

Copy link
Copy Markdown
Contributor

@aphearin aphearin 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! Very clean simple change, nicely done. Maybe add one pytest enforcing that the default parameters are within the bounds? Otherwise this looks good to merge.

@nvillanova nvillanova changed the title Add BOUNDS_DIFFSTARPOP_PARAMS namedtuple. Add DIFFSTARPOP_PBOUNDs namedtuple. May 19, 2026
@aphearin
Copy link
Copy Markdown
Contributor

Nice job on this test. Merge whenever you are ready.

@nvillanova nvillanova merged commit 75de4e1 into main May 19, 2026
6 checks passed
@nvillanova nvillanova deleted the bounds_param_coll branch May 19, 2026 21:49
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