Skip to content

Adds shape property to NDCube#684

Merged
DanRyanIrish merged 39 commits intosunpy:mainfrom
CyclingNinja:remove_dimension
Apr 24, 2024
Merged

Adds shape property to NDCube#684
DanRyanIrish merged 39 commits intosunpy:mainfrom
CyclingNinja:remove_dimension

Conversation

@CyclingNinja
Copy link
Copy Markdown
Member

Deprecates the dimensions property

Copy link
Copy Markdown
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...

Comment thread ndcube/ndcube_sequence.py Outdated
Comment thread ndcube/ndcube_sequence.py Outdated
Comment thread ndcube/ndcube_sequence.py Outdated
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>
Comment thread ndcube/ndcube_sequence.py Outdated
Comment thread ndcube/ndcube.py Outdated
Comment thread ndcube/ndcube.py Outdated
Comment thread ndcube/utils/exceptions.py Outdated
Comment thread ndcube/utils/exceptions.py Outdated
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>
Comment thread ndcube/ndcube_sequence.py Outdated
Comment thread ndcube/ndcube.py Outdated
Comment thread ndcube/ndcube.py Outdated
Comment thread ndcube/ndcube_sequence.py Outdated
Comment thread ndcube/ndcube_sequence.py Outdated
Comment thread ndcube/ndcube_sequence.py Outdated
@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 requested a review from DanRyanIrish April 24, 2024 09:34
Comment thread changelog/684.breaking.rst Outdated
Comment thread ndcube/extra_coords/tests/test_extra_coords.py Outdated
Comment thread ndcube/ndcube.py
Comment thread ndcube/ndcube_sequence.py
@nabobalis nabobalis closed this Apr 24, 2024
@nabobalis nabobalis reopened this Apr 24, 2024
Comment thread ndcube/tests/test_ndcubesequence.py Outdated
Comment thread ndcube/tests/test_ndcubesequence.py Outdated
Comment thread ndcube/tests/test_ndcubesequence.py Outdated
Comment thread ndcube/tests/test_ndcubesequence.py Outdated
Comment thread ndcube/tests/test_ndcubesequence.py Outdated
Comment thread ndcube/tests/test_ndcubesequence.py Outdated
Co-authored-by: DanRyanIrish <ryand5@tcd.ie>
@DanRyanIrish DanRyanIrish merged commit 6d1473c into sunpy:main Apr 24, 2024
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