Skip to content

Fix crash for different atm types in casaSingleDishALMAWrapper.py#343

Merged
thomaswilliamsastro merged 1 commit into
masterfrom
fix-atm-bl
May 19, 2026
Merged

Fix crash for different atm types in casaSingleDishALMAWrapper.py#343
thomaswilliamsastro merged 1 commit into
masterfrom
fix-atm-bl

Conversation

@thomaswilliamsastro
Copy link
Copy Markdown
Collaborator

Fixes #311.

This PR fixes a crash when TP data uses different atmospheric types. I think this happens in the hsd_atmcor call in the TP pipeline but what matters is that dependending on the model, the output filename is different. This just fixes that to search more generally. It'll warn if no files are found for a particular EB, and will raise an Error if multiple files are found for a particular EB.

  • Use glob to find baselined files for different atmtypes
  • Updated changelog

Fixes #311.

This PR fixes a crash when TP data uses different atmospheric types. I think this happens in the `hsd_atmcor` call in the TP pipeline but what matters is that dependending on the model, the output filename is different. This just fixes that to search more generally. It'll warn if no files are found for a particular EB, and will raise an Error if multiple files are found for a particular EB.

- Use glob to find baselined files for different atmtypes
- Updated changelog
@codecov
Copy link
Copy Markdown

codecov Bot commented May 18, 2026

Codecov Report

❌ Patch coverage is 0% with 13 lines in your changes missing coverage. Please review.
✅ Project coverage is 6.27%. Comparing base (ceecf34) to head (a4f8acc).
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
phangsPipeline/casaSingleDishALMAWrapper.py 0.00% 13 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##           master    #343      +/-   ##
=========================================
- Coverage    6.27%   6.27%   -0.01%     
=========================================
  Files          38      38              
  Lines       15204   15211       +7     
  Branches     3647    3648       +1     
=========================================
  Hits          954     954              
- Misses      14236   14243       +7     
  Partials       14      14              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@thomaswilliamsastro
Copy link
Copy Markdown
Collaborator Author

@e-koch this one at least should be quick to review :)

@low-sky
Copy link
Copy Markdown
Collaborator

low-sky commented May 18, 2026

I had also encountered this and was vaguely worried about the glob use but had found no other way to predict / determine what the atm type was going to be.

@thomaswilliamsastro
Copy link
Copy Markdown
Collaborator Author

@low-sky it also seems inconsistent! I had a hard crash with one of the M83 TP obs, but when I was testing this the atmtype it landed on was different. CASA!!!

@low-sky
Copy link
Copy Markdown
Collaborator

low-sky commented May 18, 2026

Yeesh. I can see why the trap for the multiple atmtypes for the same EB becomes important.

@thomaswilliamsastro thomaswilliamsastro merged commit aaa8783 into master May 19, 2026
5 of 7 checks passed
@thomaswilliamsastro thomaswilliamsastro deleted the fix-atm-bl branch May 19, 2026 12:28
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.

TP Pipeline bug: No valid MSs found for imaging

2 participants