Skip to content

Commit

Permalink
Fix for get_mask (see issue dendrograms#161 in astrodendro)
Browse files Browse the repository at this point in the history
  • Loading branch information
tonywong94 committed Feb 16, 2021
1 parent 47e3f99 commit a6b8d37
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astrodendro/structure.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit a6b8d37

Please sign in to comment.