Fixes issue #719, savReaderWriter including headers in data#720
Open
geirfreysson wants to merge 1 commit intodevelopfrom
Open
Fixes issue #719, savReaderWriter including headers in data#720geirfreysson wants to merge 1 commit intodevelopfrom
geirfreysson wants to merge 1 commit intodevelopfrom
Conversation
We check for the version of savReaderWriter being used and if it is a recent one, we start reading after line 0 (i.e. the header).
Contributor
|
@geirfreysson we're not on the most recent version but I'm going to take a look at this. We've done some lib updates recently and it would be better for us to update if we can. |
Contributor
|
@geirfreysson can we achieve this without adding >>> import savReaderWriter as srw
>>> srw.version
'3.3.0' |
Contributor
Author
|
Yes, it can be done without the 3rd party package. Do you think, @jamesrkg, that I should replace the packaging method with distutils.version? According to this stack overflow answer:
|
Contributor
|
@geirfreysson I'll add |
Contributor
Author
|
Hurray!
…On Mon, 27 Mar 2017 at 18:29, James Griffiths ***@***.***> wrote:
@geirfreysson <https://github.com/geirfreysson> I'll add packages as a
dependency and merge this PR on Friday. 👍
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#720 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAASFsvhomHPgE6-XcCkbuE57PkhO5tdks5rp7OrgaJpZM4MNDOW>
.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I don't know if you guys are having this problem but whenever I try and read an SPSS file with the latest savReaderWriter it throws an error because it includes the first line (the header) in the data being read.
This pull request is a fix for that. We check for the version of savReaderWriter being used and if it is a recent one, we start reading after line 0 (i.e. the header).