From a6b8d370126680b1efda005e83914dd25c183d09 Mon Sep 17 00:00:00 2001 From: Tony Wong Date: Mon, 15 Feb 2021 22:41:06 -0600 Subject: [PATCH] Fix for get_mask (see issue #161 in astrodendro) --- astrodendro/structure.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrodendro/structure.py b/astrodendro/structure.py index 0eb7d30..1e37bec 100644 --- a/astrodendro/structure.py +++ b/astrodendro/structure.py @@ -476,7 +476,7 @@ def get_mask(self, shape=None, subtree=True): """ if shape is None: shape = self._dendrogram.data.shape - indices = self.indices(subtree=True) if subtree else self.indices + indices = self.indices(subtree=True) if subtree else self.indices() mask = np.zeros(shape, dtype=bool) mask[indices] = True return mask