Skip to content

Fix HDF5 connect import errors - #6610

Merged
bsipocz merged 1 commit into
astropy:masterfrom
pllim:hdf5-connect
Sep 27, 2017
Merged

bsipocz merged 1 commit into
astropy:masterfrom
pllim:hdf5-connect

Conversation

@pllim

@pllim pllim commented Sep 26, 2017 •

Copy link
Copy Markdown
Member

Fix #6604 (maybe? UPDATE: yes.)

@astropy-bot

astropy-bot Bot commented Sep 26, 2017 •

Copy link
Copy Markdown

Hi there @pllim 👋 - thanks for the pull request! I'm just a friendly 🤖 that checks for issues related to the changelog and making sure that this pull request is milestoned and labelled correctly. This is mainly intended for the maintainers, so if you are not a maintainer you can ignore this, and a maintainer will let you know if any action is required on your part 😃.

Everything looks good from my point of view! 👍

If there are any issues with this message, please report them here

@bsipocz

bsipocz commented Sep 26, 2017

Copy link
Copy Markdown
Member

@pllim - if this fixes the issue, can it be backported? The bug is present on 2.0.2, too.

@MSeifert04

MSeifert04 commented Sep 26, 2017 •

Copy link
Copy Markdown
Contributor

I'll have a look at it later.

But does it fix the from astropy.io.misc import hdf5 "test" on a fresh interpreter?

@pllim

pllim commented Sep 26, 2017

Copy link
Copy Markdown
Member Author

@bsipocz , I think this only affects Python 3, so I thought if people really have problem with this in Python 3, they should just upgrade to v3. But then again, if backporting this is not painful, why not?

@MSeifert04 , I could do the import on fresh interpreter successfully locally, but it is good to have someone else also test this.

@bsipocz bsipocz modified the milestones: v3.0.0, v2.0.3 Sep 26, 2017
@bsipocz

bsipocz commented Sep 26, 2017

Copy link
Copy Markdown
Member

OK, I'll try to backport, but won't push it too hard if it's not a clean one.

Comment thread astropy/io/misc/hdf5.py Outdated

import numpy as np

# DEV NOTE: Do not import anything from astropy.table here.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you leave a ref to the issue?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Never seen DEV NOTE: before. Any reason it's not a normal NOTE:?

Just wondering because neither PyCharm nor Spyder visually highlight this.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Agree it should just be NOTE

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks for checking! I made up "DEV NOTE" (as this only affects developers who want to add code to this file). I'll address these comments shortly.

@bsipocz bsipocz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The import works for me on a new interpreter.

@MSeifert04 MSeifert04 left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Works for me too. Just another (small) comment.

@astrofrog astrofrog left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good but please change DEV NOTE to NOTE as mentioned above

@pllim pllim added the zzz 💤 merge-when-ci-passes Do not use: We have auto-merge option now. label Sep 27, 2017
@pllim

pllim commented Sep 27, 2017

Copy link
Copy Markdown
Member Author

Since this gotten 3 approvals, I added the "merge when CI passes" tag. Addressed comments, squashed, rebased, and even threw in a bonus change log!

@bsipocz
bsipocz merged commit 96056df into astropy:master Sep 27, 2017
@bsipocz

bsipocz commented Sep 27, 2017

Copy link
Copy Markdown
Member

Thanks @pllim! It passed everything except the OSX that I;ve cancelled.

@pllim
pllim deleted the hdf5-connect branch September 27, 2017 18:09
bsipocz added a commit that referenced this pull request Oct 2, 2017
Fix HDF5 connect import errors
@MSeifert04 MSeifert04 removed the zzz 💤 merge-when-ci-passes Do not use: We have auto-merge option now. label Oct 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants