Skip to content

Support glob-filtered allapers inputdirs for Stages 4-6#849

Merged
taylorbell57 merged 3 commits into
mainfrom
allapers_glob_regex
Jun 10, 2026
Merged

Support glob-filtered allapers inputdirs for Stages 4-6#849
taylorbell57 merged 3 commits into
mainfrom
allapers_glob_regex

Conversation

@taylorbell57

@taylorbell57 taylorbell57 commented May 26, 2026

Copy link
Copy Markdown
Collaborator

Allow allapers=True runs to use glob-style inputdir values to narrow previous-stage aperture/background folders before the usual allapers loop runs. The glob is expanded relative to topdir through existing inputdir handling, and matched folders are mapped back to ap/bg pairs so Stages 4, 5, and 6 process only the requested combinations.

Add logging for expanded allapers glob searches and a clear error when no candidate folders match. Preserve existing behavior for normal inputdir values and for glob-like inputdir values when allapers is False.

Document nested Eureka output examples such as
Stage3/S3_*_run*/ap5_bg*, and add focused tests for normal allapers behavior, glob filtering, multiple background matches, no-match errors, and allapers=False behavior.

Allow allapers=True runs to use glob-style inputdir values to narrow
previous-stage aperture/background folders before the usual allapers loop
runs. The glob is expanded relative to topdir through existing inputdir
handling, and matched folders are mapped back to ap/bg pairs so Stages 4,
5, and 6 process only the requested combinations.

Add logging for expanded allapers glob searches and a clear error when no
candidate folders match. Preserve existing behavior for normal inputdir
values and for glob-like inputdir values when allapers is False.

Document nested Eureka output examples such as
Stage3/S3_*_run*/ap5_bg*, and add focused tests for normal allapers
behavior, glob filtering, multiple background matches, no-match errors,
and allapers=False behavior.
@codecov

codecov Bot commented May 26, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 81.65138% with 20 lines in your changes missing coverage. Please review.
✅ Project coverage is 59.95%. Comparing base (74d8b90) to head (cfa54d7).

Files with missing lines Patch % Lines
src/eureka/S4_generate_lightcurves/s4_genLC.py 58.33% 5 Missing ⚠️
src/eureka/S5_lightcurve_fitting/s5_fit.py 58.33% 5 Missing ⚠️
src/eureka/S6_planet_spectra/s6_spectra.py 58.33% 5 Missing ⚠️
src/eureka/lib/manageevent.py 93.15% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #849      +/-   ##
==========================================
+ Coverage   59.79%   59.95%   +0.16%     
==========================================
  Files         107      107              
  Lines       14074    14161      +87     
==========================================
+ Hits         8415     8490      +75     
- Misses       5659     5671      +12     

☔ View full report in Codecov by Harness.
📢 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.

Comment thread src/eureka/lib/manageevent.py Outdated
Comment thread tests/test_allapers_inputdir.py
@github-project-automation github-project-automation Bot moved this from In progress to Review in progress in Road to v2.0 Jun 5, 2026
@github-project-automation github-project-automation Bot moved this from In progress to Review in progress in Stage 4: Generate Lightcurves Jun 5, 2026
@github-project-automation github-project-automation Bot moved this from In progress to Pending Review in Stage 5: Light Curve Fitting Jun 5, 2026
@taylorbell57 taylorbell57 requested a review from kevin218 June 9, 2026 18:26
@taylorbell57 taylorbell57 merged commit 1abc78c into main Jun 10, 2026
16 checks passed
@github-project-automation github-project-automation Bot moved this from Review in progress to Done in Stage 4: Generate Lightcurves Jun 10, 2026
@github-project-automation github-project-automation Bot moved this from In progress to Done in Stage 6: Spectra Plotting Jun 10, 2026
@github-project-automation github-project-automation Bot moved this from Review in progress to Done in Road to v2.0 Jun 10, 2026
@github-project-automation github-project-automation Bot moved this from Pending Review to Done in Stage 5: Light Curve Fitting Jun 10, 2026
@taylorbell57 taylorbell57 deleted the allapers_glob_regex branch June 10, 2026 18:31
taylorbell57 added a commit that referenced this pull request Jun 22, 2026
* Support glob-filtered allapers inputdirs for Stages 4-6

Allow allapers=True runs to use glob-style inputdir values to narrow
previous-stage aperture/background folders before the usual allapers loop
runs. The glob is expanded relative to topdir through existing inputdir
handling, and matched folders are mapped back to ap/bg pairs so Stages 4,
5, and 6 process only the requested combinations.

Add logging for expanded allapers glob searches and a clear error when no
candidate folders match. Preserve existing behavior for normal inputdir
values and for glob-like inputdir values when allapers is False.

Document nested Eureka output examples such as
Stage3/S3_*_run*/ap5_bg*, and add focused tests for normal allapers
behavior, glob filtering, multiple background matches, no-match errors,
and allapers=False behavior.

* Document and test allapers glob ap/bg folder matching
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Development

Successfully merging this pull request may close these issues.

2 participants