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 NDCubeSequence slicing behavior for slice item #241

Merged
merged 3 commits into from
Mar 27, 2020

Conversation

DanRyanIrish
Copy link
Member

Description

This PR changes the slicing behavior of NDCubeSequence.
Previously, a slice item of interval length 1 would cause an NDCube
object to be returned. Now an NDCubeSequence made up of 1 NDCube is
returned. This is consistent with how interval length 1 slice items
slice arrays.

Fixes #235

Previously, a slice item of interval length 1 would cause an NDCube
object to be returned. Now an NDCubeSequence made up of 1 NDCube is
returned. This is consistent with how interval length 1 slice items
slice arrays.
Also add a couple parameterizations to NDCubeSequence slicing test.
@pep8speaks
Copy link

Hello @DanRyanIrish! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 214:101: E501 line too long (108 > 100 characters)

@DanRyanIrish DanRyanIrish requested a review from Cadair March 23, 2020 03:47
@DanRyanIrish DanRyanIrish added this to the 1.3 milestone Mar 23, 2020
@DanRyanIrish DanRyanIrish merged commit 59f79ad into sunpy:master Mar 27, 2020
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.

Interval-1 Slice Should Leave axis of length 1 in NDCubeSequence
3 participants