Skip to content

FIX: Add endianness missing flag when reading data #9264

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

Merged
merged 1 commit into from
Jan 16, 2015

Conversation

bashtage
Copy link
Contributor

Added endianess flat to data type to allow data to be read cross platforms

closes #8688

if self.byteorder != self._native_byteorder:
print(data.dtype)
data = data.byteswap().newbyteorder()
print(data.dtype)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

prints left from debugging or really intended for some reason?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should not be there...

@bashtage bashtage force-pushed the stata-fix-bigendian branch from f074b75 to 8fbe379 Compare January 15, 2015 20:40
@bashtage
Copy link
Contributor Author

@yarikoptic @jreback I think this one is ready.

@jreback jreback added Testing pandas testing functions or related to the test suite IO Stata read_stata, to_stata labels Jan 16, 2015
@jreback jreback added this to the 0.16.0 milestone Jan 16, 2015
@jreback
Copy link
Contributor

jreback commented Jan 16, 2015

@yarikoptic ok on these platforms?

@jreback
Copy link
Contributor

jreback commented Jan 16, 2015

@bashtage IIRC the tests are disabled on non-small so is this actually tested?

Added endianess flat to data type to allow data to be read cross platforms

closes pandas-dev#8688
@bashtage
Copy link
Contributor Author

All of the tests were re-enabled for big-endian a few releases ago.

There are only three tests that are skipped on any platform:

https://github.com/pydata/pandas/blob/master/pandas/io/tests/test_stata.py#L256

I would like to kill these in a different PR since they rely on proprietary data and so will never be re-enabled.

@bashtage bashtage force-pushed the stata-fix-bigendian branch from 8fbe379 to 3f46c7a Compare January 16, 2015 12:52
@jreback
Copy link
Contributor

jreback commented Jan 16, 2015

ok, ping on green

@bashtage
Copy link
Contributor Author

@jreback It is ready.

jreback added a commit that referenced this pull request Jan 16, 2015
FIX: Add endianness missing flag when reading data
@jreback jreback merged commit 73ee031 into pandas-dev:master Jan 16, 2015
@jreback
Copy link
Contributor

jreback commented Jan 16, 2015

thanks!

@bashtage bashtage deleted the stata-fix-bigendian branch January 18, 2015 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO Stata read_stata, to_stata Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0.15.0 test_stata strikes back on various less common platforms on
3 participants