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

Check new neighbors deterministically #195

Merged
merged 2 commits into from
Sep 16, 2021
Merged

Commits on Sep 15, 2021

  1. Check new neighbors deterministically

    One-exchange neighborhood iterator rigorously checks some of the
    generated configurations. The check is performed with the probability 5
    %, as decided by `np.random`.
    
    Make the check deterministic (using an explicitly seeded
    `np.random.RandomState`) instead of relying on the default numpy random
    state, which need not be seeded.
    filipbartek committed Sep 15, 2021
    Configuration menu
    Copy the full SHA
    e8bda8e View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2021

  1. Make a test consistent with the current behavior

    of `get_one_exchange_neighborhood`.
    
    Update the hard-coded expected values.
    filipbartek committed Sep 16, 2021
    Configuration menu
    Copy the full SHA
    51c2fba View commit details
    Browse the repository at this point in the history