Skip to content
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

Fix bug in selecting hdu indices in sunpy.io.fits.read #4183

Merged
merged 7 commits into from May 19, 2020

Conversation

wtbarnes
Copy link
Member

Fixes #4181 and cleans up a few tests for sunpy.io.fits

@wtbarnes wtbarnes requested review from a team as code owners May 18, 2020 18:56
sunpy/io/fits.py Outdated Show resolved Hide resolved
@Cadair Cadair added this to the 2.0 milestone May 18, 2020
@Cadair Cadair added [BugFix] io Affects the io submodule labels May 18, 2020
@Cadair
Copy link
Member

Cadair commented May 18, 2020

Can haz changelog?

@wtbarnes
Copy link
Member Author

I added separate changelogs for the docfix and the bugfix. Do they need to be numbered as well? i.e. 4183.bugfix.1.rst and 4183.docfix.2.rst?

@ayshih
Copy link
Member

ayshih commented May 19, 2020

Nope

changelog/4183.docfix.rst Outdated Show resolved Hide resolved
@sunpy-backport
Copy link

The backport to 1.0 failed:

Commits ["461c8e082c8c1ce83df17487724c6a7187802e39","10ebf99c5079c4b90744f31eda2bf655028a0359","184f0dac9831a12e3f51d4e20dcb2bd1acb3f1eb","accc41a875a6da8d20e3e527b3fb9119705b322a","a654761cda3b8f108f810ba2b23268bae03d1a4d","cb8923842b3a2749bdff5dc05951a9a19d9ae7b5","12a0a61fed01f0dce8f73ef709c2e8aa0cb3c4f7"] could not be cherry-picked on top of 1.0

To backport manually, run these commands in your terminal:

# Fetch latest updates from GitHub.
git fetch
# Create new working tree.
git worktree add .worktrees/backport 1.0
# Navigate to the new directory.
cd .worktrees/backport
# Cherry-pick all the commits of this pull request and resolve the likely conflicts.
git cherry-pick 461c8e082c8c1ce83df17487724c6a7187802e39 10ebf99c5079c4b90744f31eda2bf655028a0359 184f0dac9831a12e3f51d4e20dcb2bd1acb3f1eb accc41a875a6da8d20e3e527b3fb9119705b322a a654761cda3b8f108f810ba2b23268bae03d1a4d cb8923842b3a2749bdff5dc05951a9a19d9ae7b5 12a0a61fed01f0dce8f73ef709c2e8aa0cb3c4f7
# Create a new branch with these backported commits.
git checkout -b backport-4183-to-1.0
# Push it to GitHub.
git push --set-upstream origin backport-4183-to-1.0
# Go back to the original working tree.
cd ../..
# Delete the working tree.
git worktree remove .worktrees/backport

Then, create a pull request where the base branch is 1.0 and the compare/head branch is backport-4183-to-1.0.

@wtbarnes wtbarnes added the Still Needs Manual Backport This PR needs manually backporting label May 19, 2020
@wtbarnes wtbarnes mentioned this pull request May 20, 2020
@nabobalis nabobalis removed the Still Needs Manual Backport This PR needs manually backporting label May 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
io Affects the io submodule
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Example of reading data/header with io.fits.read is broken
4 participants