Skip to content

Commit

Permalink
Move ndcube_can_slice and ndcube_can_rebin to class attributes of NDM…
Browse files Browse the repository at this point in the history
…eta.
  • Loading branch information
DanRyanIrish committed Jul 2, 2024
1 parent fef0de6 commit 28eafbb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ndcube/meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,10 @@ class NDMeta(dict):
axis-awareness. If specific pieces of metadata have a known way to behave during
rebinning, this can be handled by subclasses or mixins.
"""
__ndcube_can_slice__ = True
__ndcube_can_rebin__ = True

def __init__(self, meta=None, comments=None, axes=None, data_shape=None):
self.__ndcube_can_slice__ = True
self.__ndcube_can_rebin__ = True
self.original_meta = meta

if meta is None:
Expand Down

0 comments on commit 28eafbb

Please sign in to comment.