Skip to content

Commit

Permalink
Merge branch 'CheerfulUser:dev' into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
bray217 committed Jul 11, 2024
2 parents 91245d2 + f4e5df3 commit 780a195
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tessreduce/tessreduce.py
Original file line number Diff line number Diff line change
Expand Up @@ -1785,7 +1785,7 @@ def reduce(self, aper = None, align = None, parallel = None, calibrate=None,
print('made reference')
# make source mask
if mask is None:
self.make_mask(catalogue_path=self._catalogue_path,maglim=18,strapsize=7,scale=mask_scale)#Source_mask(ref,grid=0)
self.make_mask(catalogue_path=self._catalogue_path,maglim=18,strapsize=7,scale=mask_scale)
frac = np.nansum((self.mask == 0) * 1.) / (self.mask.shape[0] * self.mask.shape[1])
#print('mask frac ',frac)
if frac < 0.05:
Expand Down Expand Up @@ -1873,7 +1873,7 @@ def reduce(self, aper = None, align = None, parallel = None, calibrate=None,

self.ref -= self.bkg[self.ref_ind]
# remake mask
self.make_mask(catalogue_path=self._catalogue_path,maglim=18,strapsize=7,scale=mask_scale*.8,useref=True)#Source_mask(ref,grid=0)
self.make_mask(catalogue_path=self._catalogue_path,maglim=18,strapsize=7,scale=mask_scale*.8,useref=False)#Source_mask(ref,grid=0)
frac = np.nansum((self.mask== 0) * 1.) / (self.mask.shape[0] * self.mask.shape[1])
#print('mask frac ',frac)
if frac < 0.05:
Expand Down

0 comments on commit 780a195

Please sign in to comment.