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

Delay transforming priority_order into ndarray #1045

Merged

Commits on Oct 26, 2023

  1. Delay transforming priority_order into ndarray

    In the changed code, we had a mypy error because numpy ndarrays are not
    compatible with random.Random.shuffle() (expected argument type is
    MutableSequence[Any])
    
    We fix this by first instantiating priority_order as a list, then
    shuffling it, then creating an ndarray from it afterwards.
    junholee6a committed Oct 26, 2023
    Configuration menu
    Copy the full SHA
    d2c6e49 View commit details
    Browse the repository at this point in the history