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

Incorrect encoding of numpy 1D vectors #4

Closed
fangq opened this issue Oct 26, 2023 · 0 comments
Closed

Incorrect encoding of numpy 1D vectors #4

fangq opened this issue Oct 26, 2023 · 0 comments

Comments

@fangq
Copy link
Member

fangq commented Oct 26, 2023

this issue was reported by Gavin Lobo, the following commands failed to return the correct array length using bjdata v0.4.0

import bjdata as bj
import numpy as np
bj.dumpb(np.array([1,2,3,4],dtype=np.int8))
    b'[$i#U\x01\x01\x02\x03\x04'

where the array length #U\x01 was incorrect, should have been #U\x04 as there are 4 elements.

@fangq fangq closed this as completed in 8ef1b12 Oct 26, 2023
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

No branches or pull requests

1 participant