Skip to content

Comments

Add new makeflow_type: lstbin_single_baseline#155

Merged
plaplant merged 8 commits intomainfrom
lstbin-single-baseline
Jul 7, 2025
Merged

Add new makeflow_type: lstbin_single_baseline#155
plaplant merged 8 commits intomainfrom
lstbin-single-baseline

Conversation

@jsdillon
Copy link
Member

@jsdillon jsdillon commented Jun 19, 2025

This PR adds support for a new makeflow_type, lstbin_single_baseline, designed for LST-stacking files that have one baseline (generally for all 2 or 4 pols) for all times on a given JD. This is a thin wrapper around the analysis type, using baseline strings like 1_2 instead of JD strings as "obsids"... which seems to work just fine.

The advantage of this, as opposed to modifying the lstbin type is that this currently supports workflows with multiple actions (which I think I'll need). Also, single-baseline LST stacking is fundamentally more similar to analysis types, where existing files are the base object on which we'd like to parallelize, rather than an abstract set of LSTs inferred from the data and the configuration files.

This PR requires HERA-Team/hera_cal#1005 to be merged first.

@jsdillon jsdillon requested a review from Copilot June 19, 2025 22:10
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds support for a new makeflow type, "lstbin_single_baseline", designed to handle LST-stacking files with a single baseline configuration.

  • Introduces a new function build_lstbin_single_baseline_makeflow_from_config in mf_tools.py to create makeflow files using baseline strings.
  • Adds new tests in tests/test_mf_tools.py to verify the makeflow construction and wrapper script generation for the new type.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
hera_opm/tests/test_mf_tools.py New tests ensuring proper behavior of the lstbin_single_baseline type.
hera_opm/mf_tools.py Added new branch in build_makeflow_from_config and a dedicated function for lstbin_single_baseline.

@jsdillon jsdillon marked this pull request as draft June 19, 2025 22:11
@jsdillon jsdillon requested a review from plaplant June 23, 2025 17:28
@jsdillon jsdillon marked this pull request as ready for review June 23, 2025 17:29
up hera_cal dependency for tests
@codecov
Copy link

codecov bot commented Jun 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.89%. Comparing base (8202791) to head (87e4c37).
Report is 11 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #155      +/-   ##
==========================================
+ Coverage   98.88%   98.89%   +0.01%     
==========================================
  Files           4        4              
  Lines         716      725       +9     
==========================================
+ Hits          708      717       +9     
  Misses          8        8              
Flag Coverage Δ
unittests 98.89% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@plaplant plaplant left a comment

Choose a reason for hiding this comment

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

Looks great, thanks @jsdillon!



@pytest.fixture()
def tmp_cfg_dir(tmp_path: Path) -> Path:
Copy link
Member

Choose a reason for hiding this comment

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

Very clever, this is a nice way to make the testing layout.

@plaplant plaplant merged commit c5345ef into main Jul 7, 2025
11 checks passed
@plaplant plaplant deleted the lstbin-single-baseline branch July 7, 2025 14:57
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.

2 participants