Skip to content

Commit

Permalink
Adding catch for when mask_groups is not specified in coron1pipeline …
Browse files Browse the repository at this point in the history
…call.
  • Loading branch information
AarynnCarter committed Aug 5, 2024
1 parent 8446888 commit 4913c87
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spaceKLIP/coron1pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,8 @@ def run_obs(database,
fitspath,
fitstype,
quiet)
else:
steps['mask_groups'] = {'skip': True}

# Get expected output file name
outfile_name = tail.replace('uncal.fits', 'rateints.fits')
Expand Down Expand Up @@ -1168,8 +1170,6 @@ def expand_and_update_mask(indices, mask, xpad=2, ypad=2):
mask_4d = np.zeros(ref_cubes_shape, dtype=bool)
mask_ref = np.tile(mask[0:1], (ref_cubes_shape[0],1,1))

# FIX THIS TOMORROW! Average rolls?

for i in range(mask_4d.shape[1]):
temp = mask_4d[:,i,:,:]
temp[mask_ref] = True
Expand Down

0 comments on commit 4913c87

Please sign in to comment.