-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
Added Stata 13 support #4662
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
Added Stata 13 support #4662
Conversation
@PKEuS you have travis turned on? |
Yes. Main error shown on travis is "ValueError: Version of given Stata file is not 104, 105, 108, 113 (Stata 8/9), 114 (Stata 10/11), 115 (Stata 12) or 117 (Stata 13)" for all 117 unit tests, but only for Python != 2.7. Does anybody have an idea what is going on? |
the one build that passes runs very few tests (it's for a non-English testing) and doesn't run the stata stuff does this pass locally? Travis runs on 32-bit Linux FYI |
Yes, it passes locally. But there is something strange about it I noticed: |
maybe sure that the multiprocess_can_split is False (at the top of the test_stata) what did u change? |
I ran this PR local (64-bit linux) and got this; maybe reading the wrong value for vartypes?
|
I was able to fix some problems, now two of 5 buildbots (2.6 and 2.7) are still failing. Now with:
Might the problem be that seek_vartypes is read as an 8-bytes integer? |
you should be explicit if you are reading bytes |
Is that not explicit enough? Where do I have to add something? At the line above, or the following one?
|
@PKEuS not sure. can you setup a vagrant 32-bit machine and debug? |
Finally, the problem seems to be solved! |
@PKEuS great, couple of questions it looks like this is backward compat (as you can still read the new files). Is there a change in the writing behavior? can you document in doc/source/release.rst and update the docs in io.rst (I would just add a short blurb that in v0.13 you now accept this new Stata format, while remaining backwards compat) |
The StataWriter has not been changed - it still uses the old format. I will add the new feature to the release notes. |
@PKEuS this looks fine can you rebase on master, then squish down to a few commits....? |
Fixed docstring of read_stata Removed unused imports Fixed some bugs in Stata format 117 parsing Added unit testing for Stata 13 format
Squashed to two commits and rebased. |
I defer to the test suite ;) |
@PKEuS thanks again! |
Added initial Stata 13 .dta file format support. Newly added string features ("strls") and writing are not supported. Fixes #4291.