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...

ndcube/ndcube_sequence.py Outdated Show resolved Hide resolved
ndcube/ndcube_sequence.py Outdated Show resolved Hide resolved
ndcube/ndcube_sequence.py Outdated Show resolved Hide resolved
CyclingNinja and others added 5 commits April 23, 2024 15:58
Co-authored-by: DanRyanIrish <ryand5@tcd.ie>
Co-authored-by: DanRyanIrish <ryand5@tcd.ie>
Co-authored-by: DanRyanIrish <ryand5@tcd.ie>
ndcube/ndcube_sequence.py Outdated Show resolved Hide resolved
ndcube/ndcube.py Outdated Show resolved Hide resolved
ndcube/ndcube.py Outdated Show resolved Hide resolved
CyclingNinja and others added 6 commits April 24, 2024 10:11
Co-authored-by: Nabil Freij <nabil.freij@gmail.com>
Co-authored-by: Nabil Freij <nabil.freij@gmail.com>
Co-authored-by: DanRyanIrish <ryand5@tcd.ie>
Co-authored-by: Nabil Freij <nabil.freij@gmail.com>
Co-authored-by: Nabil Freij <nabil.freij@gmail.com>
ndcube/ndcube.py Outdated Show resolved Hide resolved
ndcube/ndcube.py Outdated Show resolved Hide resolved
@nabobalis nabobalis added this to the 2.3.0 milestone Apr 24, 2024
Depricates `dimensions` property
CyclingNinja and others added 7 commits April 24, 2024 11:29
Co-authored-by: Nabil Freij <nabil.freij@gmail.com>
Co-authored-by: Nabil Freij <nabil.freij@gmail.com>
Co-authored-by: DanRyanIrish <ryand5@tcd.ie>
Co-authored-by: Nabil Freij <nabil.freij@gmail.com>
Co-authored-by: Nabil Freij <nabil.freij@gmail.com>
@nabobalis nabobalis closed this Apr 24, 2024
@nabobalis nabobalis reopened this Apr 24, 2024
ndcube/tests/test_ndcubesequence.py Outdated Show resolved Hide resolved
ndcube/tests/test_ndcubesequence.py Outdated Show resolved Hide resolved
ndcube/tests/test_ndcubesequence.py Outdated Show resolved Hide resolved
ndcube/tests/test_ndcubesequence.py Outdated Show resolved Hide resolved
ndcube/tests/test_ndcubesequence.py Outdated Show resolved Hide resolved
ndcube/tests/test_ndcubesequence.py Outdated Show resolved Hide resolved
Co-authored-by: DanRyanIrish <ryand5@tcd.ie>
@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.

None yet

3 participants