Skip to content

Commit

Permalink
Removed mask-dealing in the Add method.
Browse files Browse the repository at this point in the history
  • Loading branch information
PCJY committed Jan 22, 2025
1 parent 3369223 commit f17da78
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ndcube/ndcube.py
Original file line number Diff line number Diff line change
Expand Up @@ -966,6 +966,7 @@ def __neg__(self):
return self._new_instance(data=-self.data)

def add(self, value):
# Version at 22/Jan.
kwargs = {}
if isinstance(value, NDData) and value.wcs is None:
if self.unit is not None and value.unit is not None:
Expand Down

0 comments on commit f17da78

Please sign in to comment.