Skip to content

Deprecate world_axis_physical_types properties#309

Merged
DanRyanIrish merged 4 commits intosunpy:1.4from
DanRyanIrish:1.4_deprecate_physical_types
Nov 3, 2020
Merged

Deprecate world_axis_physical_types properties#309
DanRyanIrish merged 4 commits intosunpy:1.4from
DanRyanIrish:1.4_deprecate_physical_types

Conversation

@DanRyanIrish
Copy link
Copy Markdown
Member

in favor of array_axis_physical_types properties. This required new properties to be added to NDCubeSequence. The world_axis_physical_types properties will be removed in 2.0

@pep8speaks
Copy link
Copy Markdown

pep8speaks commented Nov 3, 2020

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

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2020-11-03 12:30:25 UTC

in favor of array_axis_physical_types properties. This required new such
properties to be added to NDCubeSequence. The world_axis_physical_types
properties will be removed in 2.0
@DanRyanIrish DanRyanIrish force-pushed the 1.4_deprecate_physical_types branch from b936723 to b4cc180 Compare November 3, 2020 12:03
@DanRyanIrish DanRyanIrish requested a review from Cadair November 3, 2020 12:05
Comment thread ndcube/ndcube.py Outdated
Comment on lines +227 to +229
message='NDCube.world_axis_physical_types will be removed in version 2.0. ' + \
'Use NDCube.wcs.world_axis_physical_types or ' + \
'NDCube.array_axis_physical_types instead.')
Copy link
Copy Markdown
Member

@Cadair Cadair Nov 3, 2020

Choose a reason for hiding this comment

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

you don't need line continuation inside brackets, or +.

Suggested change
message='NDCube.world_axis_physical_types will be removed in version 2.0. ' + \
'Use NDCube.wcs.world_axis_physical_types or ' + \
'NDCube.array_axis_physical_types instead.')
message=('NDCube.world_axis_physical_types will be removed in version 2.0. '
'Use NDCube.wcs.world_axis_physical_types or '
'NDCube.array_axis_physical_types instead.'))

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Thanks!

@DanRyanIrish DanRyanIrish merged commit c46be84 into sunpy:1.4 Nov 3, 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.

3 participants