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

Separate plotting from NDCube base class #101

Merged
merged 2 commits into from
Mar 28, 2018

Conversation

DanRyanIrish
Copy link
Member

This PR creates a new NDCubeBase class that contains all the NDCube functionality except plotting. This allows custom plotting mixin classes to be used with NDCube and stops the basic version of NDCube being dependent on sunpy. This was achieved by doing the following:

  • Rename old NDCubeBase to NDCubeABC
  • Rename old NDCube class to NDCubeBase and remove the NDCubePlotMixin and astropy.nddata.NDArithmeticMixin mixin classes from its inheritence.
  • Create new NDCube class which inherits from new NDCubeBase and the NDCubePlotMixin and astropy.nddata.NDArithmeticMixin mixin classes.

…. Rename current NDCubeBase to NDCubeABC and create new NDCube class which mixes in the base and plotting mixin.
@DanRyanIrish DanRyanIrish merged commit 495711e into sunpy:master Mar 28, 2018
DanRyanIrish added a commit to DanRyanIrish/ndcube that referenced this pull request Mar 30, 2018
DanRyanIrish added a commit that referenced this pull request Mar 30, 2018
Updated CHANGELOG to include PRs #98, #101 and #103.
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.

1 participant