Skip to content

Bug fixes to make the legacy SD pipeline work again - #410

Merged
thomaswilliamsastro merged 1 commit into
PhangsTeam:masterfrom
astrojysun:js_dev
Oct 7, 2026
Merged

thomaswilliamsastro merged 1 commit into
PhangsTeam:masterfrom
astrojysun:js_dev

Conversation

@astrojysun

Copy link
Copy Markdown
Collaborator

These are needed so I could run the legacy SD pipeline on a TP dataset from the MAUVE-ALMA program.

  • Remove obsolete keywords and a loop layer in the task_execute_single_dish_pipeline call
  • Swap vel_cube vs vel_line for the legacy pipeline (the nomenclature is reversed there)
  • Guard against trailing slashes in the TP directories specified in the MS key file
  • Fix two key errors

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🔵 Needs a closer look

The CASA-dependent legacy workflow cannot be reliably validated in the available environment.

Review effort: Balanced
Findings: None

What changed in this PR

Restores compatibility with the legacy single-dish pipeline.

Changes:

  • Normalizes TP directory paths.
  • Corrects legacy velocity ranges, keyword names, and frequency units.
  • Removes redundant per-dataset invocation.
File Description
phangsPipeline/​handlerSingleDish.py Fixes legacy pipeline argument construction and execution.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@codecov

codecov Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 7.96%. Comparing base (bd24934) to head (1e00523).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@          Coverage Diff           @@
##           master    #410   +/-   ##
======================================
  Coverage    7.96%   7.96%           
======================================
  Files          42      42           
  Lines       16618   16615    -3     
  Branches     3980    3978    -2     
======================================
  Hits         1323    1323           
+ Misses      15272   15269    -3     
  Partials       23      23           
Components Coverage Δ
casa 4.93% <ø> (ø)
handler 6.31% <0.00%> (+<0.01%) ⬆️
spectral-cube 10.14% <ø> (ø)
utils 13.59% <ø> (ø)

Swap vel_cube vs vel_line and fix key errors

Be robust to trailing slashs in the MS key file
@thomaswilliamsastro

Copy link
Copy Markdown
Collaborator

Looks good. I'm not quite sure what this does for multi-MS SD data, but happy to accept this as an unfixed (for now) edge case

@thomaswilliamsastro
thomaswilliamsastro merged commit 6670982 into PhangsTeam:master Oct 7, 2026
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants