Pull request #1898: PIPE-3163: reinstate a fallback for when tsys is not taken on every target to plot the closest target-mapped tsys field.
Merge in PIPE/pipeline from PIPE-3163-source-pointings-plots-missing-for-multi-target-datasets to main
* commit '63d27a50e125fb013f04590846b0ecb57b31339d': PIPE-3163: Fix field-level deduplication in tsysfieldmap PIPE-3163: Refactor `select_tsys_fields` to return single best-matching field
I don't know how the pytest is set up, just trying to get this done since the dev. is not available.
added debugging log messages about multiple tsys fields fixed function name that broke the test
typo
reinstate a fallback, for when tsys is not taken on every target, to plot all the other target mapped tsys fields.
PIPE-3163: Fix field-level deduplication in tsysfieldmap
- `get_tsys_fields_for_intent` now returns an insertion-ordered list[str]
instead of a set, ensuring reproducible output
- Fix f() to deduplicate at the field ID level, not the whole
comma-separated string level
PIPE-3163: Refactor `select_tsys_fields` to return single best-matching field
- Rename `select_tsys_fields` back to `select_tsys_field`; return Field | None
instead of list[Field] / raising LookupError
- Implement nearest-field fallback (angular separation) replacing the
previous "return all fields" approach
- Update `plot_tsys_scans` to handle `None` return gracefully
- Fix tests: add per-case gainfield mock, add nearest-fallback test case