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

Conversation

junholee6a
Copy link
Contributor

Issue: #722

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 junholee6a requested a review from a team as a code owner September 30, 2023 20:27
@junholee6a
Copy link
Contributor Author

This is a remake of PR #969 after branches were rebuilt

@ksneab7
Copy link
Contributor

ksneab7 commented Oct 26, 2023

Please update when able :)

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.
auto-merge was automatically disabled October 26, 2023 14:29

Head branch was pushed to by a user without write access

@junholee6a junholee6a force-pushed the delay-transform-to-ndarray-2 branch from dd13e4a to d2c6e49 Compare October 26, 2023 14:29
@taylorfturner taylorfturner enabled auto-merge (squash) October 26, 2023 14:32
@taylorfturner taylorfturner merged commit 91eb046 into capitalone:dev Oct 27, 2023
@taylorfturner
Copy link
Contributor

Thanks @junholee6a!

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.

3 participants