Skip to content

Commit

Permalink
don't patch TSNR2_ALPHA
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Sep 6, 2024
1 parent 4d65d82 commit ce8d183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py/specprodDB/patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def patch_frames(src_frames, dst_frames):
log.info("Replacing masked values in src_frames column %s with zero.", column)
src_frames[column][src_frames[column].mask] = 0
src_frames[column].mask[src_frames[column].mask] = False
if hasattr(dst_frames_patched[column], 'mask'): # and not column.startswith('TSNR2_'):
if hasattr(dst_frames_patched[column], 'mask') and column != 'TSNR2_ALPHA':
if np.any(dst_frames_patched[column].mask[dst_frames_index]):
log.info("Patching %d rows in dst_frames column %s.",
np.sum(dst_frames_patched[column].mask[dst_frames_index]), column)
Expand Down

0 comments on commit ce8d183

Please sign in to comment.