Skip to content

lots of linting #518

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 3 commits into from
Apr 11, 2019
Merged

lots of linting #518

merged 3 commits into from
Apr 11, 2019

Conversation

matchings
Copy link
Collaborator

No description provided.

Nick Ponvert and others added 3 commits April 10, 2019 13:32
I think I have found all of the places where we pass the format kwarg
to pandas.read_hdf(), which is not allowed anymore by new versions
of pandas. This also removes commented-out lines that I had left
in an earlier commit.
@matchings matchings requested a review from nickponvert April 11, 2019 21:11
Copy link
Contributor

@nickponvert nickponvert left a comment

Choose a reason for hiding this comment

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

I think this is the right place to have the linting fixes. I was being paranoid earlier. I also had the dream of including more linting fixes in this PR, to try and get the tests working again, but there would be some fixes required beyond just adding whitespace, etc. So I think we should just do these commits together.

@nickponvert nickponvert merged commit 3a9994a into feature/production_analysis Apr 11, 2019
@nickponvert
Copy link
Contributor

This addresses issue #513 and makes PR #514 unnecessary. For future reference, here's the explanation for the #513 fix:

This PR addresses issue #513 by changing all of the calls to pandas.read_hdf() to no longer pass 'format' as a kwarg. We used to do this, and the passed kwarg was ignored by HDFStore.open because it wasn't a defined keyword arg for that method, but no alarms were raised.

See: pandas-dev/pandas#13291

In newer versions of pandas there is an exception raised if you try to pass 'format' to the read_hdf() method. Removing this kwarg:

  • Won't change the output of read_hdf, as the kwarg was being ignored before, and
  • Allows me to run Marina's old notebooks with VBA analysis code and pandas==0.24.2

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

Successfully merging this pull request may close these issues.

2 participants