ericmandel / pyds9

Python connection to SAOimage DS9 via XPA
76 stars 41 forks source link

Explicitly use system endianness for "=" dtype #11

Closed eteq closed 9 years ago

eteq commented 9 years ago

This is a follow-on to #10 that I just realized seems to be necessary.

For some reason, at least on my system right now, if you don't specify the endianness, ds9 sometimes just picks one that is not the system endianness. It seems to depend on the bitpix value somehow, but I can't really tell exactly what it's doing. So for safety's sake, this just forces the endianess for an array of dtype '=' to just be whatever the system endianness is.

I thought this is exactly what ds9 does, but it isn't always working for me, so this seems to be more reliable.

eteq commented 9 years ago

oh, and @ericmandel, should I update the changelog, or will you do that?