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

Make list solve_order predictable #222

Merged
merged 1 commit into from
Jul 13, 2024

Conversation

alwilson
Copy link
Contributor

Using solve_order() on a list could cause randomization of list members in an unpredictable order (see #221). This was due to toposort using sets and unordering the dictionary passed to it. This now appends the toposorted list fields in the same order that the randset had originally.

Add testcase passing multiple lists in an ordered randset.

Using solve_order() on a list could cause randomization of list
members in an unpredictable order (see fvutils#221). This was due to
toposort using sets and unordering the dictionary passed to it.
This now appends the toposorted list fields in the same order
that the randset had originally.

Add testcase passing multiple lists in an ordered randset.
@mballance
Copy link
Member

Thanks, @alwilson! Looks great

@mballance mballance merged commit c0b307f into fvutils:master Jul 13, 2024
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.

2 participants