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

Add method to BitArray for converting to bit array #13396

Open
kevinsung opened this issue Nov 5, 2024 · 2 comments
Open

Add method to BitArray for converting to bit array #13396

kevinsung opened this issue Nov 5, 2024 · 2 comments
Labels
good first issue Good for newcomers mod: primitives Related to the Primitives module type: feature request New feature or request

Comments

@kevinsung
Copy link
Contributor

What should we add?

I.e., a Numpy array of bools. Recipe courtesy of @ihincks:

np.unpackbits(bit_array.array, axis=-1)[...,-bit_array.num_bits:]
@kevinsung kevinsung added type: feature request New feature or request good first issue Good for newcomers labels Nov 5, 2024
@github-project-automation github-project-automation bot moved this to Tagged but unassigned in Contributor Monitoring Nov 5, 2024
@jakelishman jakelishman added the mod: primitives Related to the Primitives module label Nov 5, 2024
@boonware
Copy link
Contributor

boonware commented Nov 6, 2024

@kevinsung Could you elaborate on this one a little more, I am interested in implementing it.

@mohitd
Copy link
Contributor

mohitd commented Nov 23, 2024

BitArray has from_bool_array function so is the intent of this feature request to create a corresponding to_bool_array?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers mod: primitives Related to the Primitives module type: feature request New feature or request
Projects
Status: Tagged but unassigned
Development

No branches or pull requests

4 participants