From 28eafbbf5d6e86dcad6056d7129aaf20710cd4fa Mon Sep 17 00:00:00 2001 From: DanRyanIrish Date: Tue, 2 Jul 2024 11:39:58 +0100 Subject: [PATCH] Move ndcube_can_slice and ndcube_can_rebin to class attributes of NDMeta. --- ndcube/meta.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ndcube/meta.py b/ndcube/meta.py index 73701aaf8..a5a7ec1be 100644 --- a/ndcube/meta.py +++ b/ndcube/meta.py @@ -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: