Skip to content
This repository has been archived by the owner on Jul 22, 2021. It is now read-only.

Commit

Permalink
Allow model arithmetic without parent masks
Browse files Browse the repository at this point in the history
  • Loading branch information
nmearl committed Aug 30, 2017
1 parent d8cf354 commit fbcf893
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion specviz/core/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -479,7 +479,7 @@ def parent_mask(self):
-------
"""
if self.mask is None or self._parent.layer_mask is None:
if self.mask is None or self._parent is None or self._parent.layer_mask is None:
return np.zeros(self._data.shape)

return self.mask.astype(bool) | ~self._parent.layer_mask.astype(bool)
Expand Down

0 comments on commit fbcf893

Please sign in to comment.