You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I checked that self.dtype is None, and buf.read_strings(n_items) has trailing zeros retained, but np.array(buf.read_strings(n_items), dtype=self.dtype) has trailing zeros removed. I tried using np.void as dtype as suggested in the numpy issue thread, it seems to solve the issue. But I don't know how to properly replace self.dtype with np.void, if I do I'm glad to fire a PR
np.void is not a good solution since the result behaves differently than plain bytes. using object does the job but I'm not sure if that affects performance. I've raised a PR using object.
Describe the bug
As the title says
To Reproduce
Expected behavior
numpy_result and normal_result should match
Versions
I've digged for quite a while in the code, but this seems to have been processed somewhere deeper.
The text was updated successfully, but these errors were encountered: