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

Adds shape property to NDCube #684

Merged
merged 39 commits into from
Apr 24, 2024
Merged

Conversation

CyclingNinja
Copy link
Member

Deprecates the dimensions property

Copy link
Member

@DanRyanIrish DanRyanIrish left a comment

Choose a reason for hiding this comment

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

Comments regarding NDCubeSequence: As well as request changes, make NDCubeSequence.dimensions do this:

def dimensions(self):
    return tuple([d * u.pix for d in self._shape])

Also, create a .shape property that just returns self._shape.

It's possible this may cause breaks elsewhere...

@nabobalis nabobalis added this to the 2.3.0 milestone Apr 24, 2024
Depricates `dimensions` property
@nabobalis nabobalis requested a review from DanRyanIrish April 24, 2024 09:34
@nabobalis nabobalis closed this Apr 24, 2024
@nabobalis nabobalis reopened this Apr 24, 2024
@DanRyanIrish DanRyanIrish merged commit 6d1473c into sunpy:main Apr 24, 2024
19 checks passed
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.

3 participants