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

Feature Request: support endian argument to createVariable #15

Closed
glenfletcher opened this issue Mar 19, 2016 · 3 comments
Closed

Feature Request: support endian argument to createVariable #15

glenfletcher opened this issue Mar 19, 2016 · 3 comments

Comments

@glenfletcher
Copy link

You mention in the readme "We don't support the endian argument to createVariable. The h5py API does not appear to offer this feature."

h5py dose support endianness buts its a component of the dtype i.e. dtype='<f8' is little, while dtype='>f8' is big, you can use the newbyteorder function on a numpy dype object to set it like so

>>> np.dtype("<f, >f")
dtype([('f0', '<f4'), ('f1', '>f4')])
>>> np.dtype("<f, >f").newbyteorder('>')
dtype([('f0', '>f4'), ('f1', '>f4')])
>>> np.dtype("<f, >f").newbyteorder('<')
dtype([('f0', '<f4'), ('f1', '<f4')])
@shoyer
Copy link
Collaborator

shoyer commented Mar 20, 2016

Thanks for pointing this out. If anyone is interested in this feature, please make a pull request.

@kmuehlbauer kmuehlbauer changed the title Suggetion: how to support the endian argument to createVariable Feature Request: support endian argument to createVariable Feb 4, 2021
@kmuehlbauer
Copy link
Collaborator

@glenfletcher 5+ years is a long time, but maybe you are still looking for that feature. It's approaching in #124.

@kmuehlbauer
Copy link
Collaborator

Closed via #124

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants