Skip to content

Commit

Permalink
Clear another array after MID calculations.
Browse files Browse the repository at this point in the history
  • Loading branch information
vrodgom committed Nov 8, 2023
1 parent 469df0a commit 8f8f536
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion statmorph/statmorph.py
Original file line number Diff line number Diff line change
Expand Up @@ -2286,11 +2286,12 @@ def deviation(self):

# This is the "last" MID statistic that is calculated, so we try
# to clear some memory here.
del self._cutout_stamp_maskzeroed_no_bg
del self._sorted_pixelvals_stamp_no_bg
del self._cutout_stamp_maskzeroed_no_bg_nonnegative
del self._sorted_pixelvals_stamp_no_bg_nonnegative
del self._sorted_pixelvals_mid
del self._cutout_mid
del self._sorted_pixelvals_mid
del self._cutout_mid_smooth

return D
Expand Down

0 comments on commit 8f8f536

Please sign in to comment.