Pull request #1853: PIPE-3128
Merge in PIPE/pipeline from PIPE-3128-polarization-calibration-imaging-repbw-stokes-iquv-image-not-inheriting-cleanmask-and to main
* commit 'f9ded2cde48b05139f176936511a63f36c8d7a88': PIPE-3128: Fix CleanTargetInfo specmode key mismatch for repBW imaging PIPE-3096: Fix the 'field' name value mismatch in `CleanTargetInfo`
PIPE-3128: Fix CleanTargetInfo specmode key mismatch for repBW imaging
Use `hm_specmode` instead of `specmode` when constructing `CleanTargetInfo`
keys in `merge_with_context`. For repBW, `specmode` is converted to 'cube'
internally while makeimlist reads back with the user-facing 'repBW'
value, causing clean masks and thresholds from Stokes I imaging to not
be picked up for subsequent IQUV imaging.
PIPE-3096: Fix the 'field' name value mismatch in `CleanTargetInfo`
Add a comment in TcleanResult.__init__ noting that inputs.field (the raw
field name string, potentially with quotation marks) was historically
assigned to self.sourcename instead of the value resolved by
get_sourcename(). Revert cleanbase.py to use inputs.field for
TcleanResult construction, log/error messages, and imageheader metadata
to preserve prior behaviour for the ALMA fullpol imaging workflow.