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

Remove high-priority, soft weight constraint from distributions #194

Merged
merged 1 commit into from Sep 26, 2023

Conversation

alwilson
Copy link
Contributor

This removes the soft constraint created after building the hard constraints for a distribution. It also reverses the unittest meant for testing that distribution non-zero weights can override soft constraints.

This saves off the weight list and a function to calculate them into ConstraintDistScopeModel, in the hopes that at some point recalling the randomization model and swizzler would re-randomize the distribution weight targeted.

This also adds enough type hints to make it easier to track down target_range and distribution weight list usage.

This removes the soft constraint created after building the
hard constraints for a distribution. It also reverses the
unittest meant for testing that distribution non-zero weights
can override soft constraints.

This saves off the weight list and a function to calculate them
into ConstraintDistScopeModel, in the hopes that at some point
recalling the randomization model and swizzler would re-randomize
the distribution weight targeted.

This also adds enough type hints to make it easier to track down
target_range and distribution weight list usage.
@alwilson
Copy link
Contributor Author

@mballance I was curious what all was done in the swizzler with dists so I made some changes. Thought I'd throw my changes up to see what you think. Full context here: #191

@mballance
Copy link
Member

Hi @alwilson, sorry for the delay in looking at this in-depth. Good catch on the difference between SV expected behavior and what was implemented in PyVSC. Changes look good to me, and appreciate the addition of a test!

@mballance mballance merged commit 29726f2 into fvutils:master Sep 26, 2023
1 check 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.

None yet

2 participants