Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Calculation of additional number of channels in regrid mstransform call (#344).
- Fix stokes passed as integer string to imsubimage in 4D mosaic path (#349).
- Import recipe_phangs_flat_mask in handlerDerived (#357).
- Fix crash with using cleanmasks combined with new sdintimaging implementation (#360)

### Dependencies
- Bump actions/upload-artifact from 6 to 7 (#313).
Expand Down
15 changes: 11 additions & 4 deletions phangsPipeline/handlerImaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -817,10 +817,17 @@ def task_read_clean_mask(
imaging_method=imaging_method)

# import_and_align_mask
msr.import_and_align_mask(in_file=this_cleanmask,
out_file=fname_dict['mask'],
template=fname_dict['image'],
blank_to_match=True)
if imaging_method == 'tclean':
msr.import_and_align_mask(in_file=this_cleanmask,
out_file=fname_dict['mask'],
template=fname_dict['image'],
blank_to_match=True)
elif imaging_method == 'sdintimaging':
template_name = fname_dict['image'].replace('.joint.', '.sd.')
msr.import_and_align_mask(in_file=this_cleanmask,
out_file=fname_dict['mask'],
template=template_name,
blank_to_match=True)
# AKL - propose to deprecate
# clean_call.set_param('usemask','user')

Expand Down
Loading