Skip to content

feat: add fullauto mode — frequency-band-only horn design#62

Merged
timini merged 3 commits into
mainfrom
feat/fullauto-mode
Mar 1, 2026
Merged

feat: add fullauto mode — frequency-band-only horn design#62
timini merged 3 commits into
mainfrom
feat/fullauto-mode

Conversation

@timini

@timini timini commented Feb 27, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds fullauto pipeline mode: user specifies only a target frequency band (e.g. 500–4000 Hz), and the system derives optimal horn geometry analytically then explores a grid of candidates via FEM
  • New geometry_designer module derives mouth radius from c₀/(2πf_low) and length from quarter-wave to half-wave, generating a focused grid of ~27 candidates (3 profiles × 3 mouth radii × 3 lengths)
  • HTML report gains geometry columns in rankings table and a "Design Summary" section showing the analytical derivation
  • Prescreen mouth_radius/length made optional for fullauto compatibility
  • 25 unit tests for geometry derivation, all existing tests unaffected

Test plan

  • uv run pytest packages/horn-core/tests/test_geometry_designer.py -v — 25/25 pass
  • uv run pytest packages/horn-analysis/tests/test_html_report.py -v — 4/4 pass
  • uv run pytest packages/horn-analysis/tests/test_prescreen.py -v — 11/11 pass
  • nextflow run main.nf -profile docker --mode fullauto --target_f_low 500 --target_f_high 4000 --num_intervals 10 — e2e pipeline
  • Open results/fullauto/report/auto_report.html — verify geometry columns and design summary

🤖 Generated with Claude Code

timini and others added 3 commits February 27, 2026 09:22
Adds a new `fullauto` pipeline mode where the user specifies only a
target frequency band (e.g. 500–4000 Hz) and the system derives
optimal horn geometry using analytical acoustics formulas, then
explores a grid of candidates via FEM.

Key changes:
- New geometry_designer module with analytical derivation functions
- Prescreen mouth_radius/length now optional for fullauto compatibility
- HTML report gains geometry columns and Design Summary section
- 6 new Nextflow processes wiring the fullauto workflow
- 25 unit tests for geometry derivation

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Resolve README.md merge conflict (keep main's formatting)
- Fix AttributeError: 'DriverParameters' has no attribute 'power_w'
  by using getattr() with None fallback in _render_rankings_rows()

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…atures)

Merge main into feat/fullauto-mode to resolve html_report.py conflicts.
Both the fullauto design_summary_section and the 3D geometry_section are
retained. Fix np.trapezoid compat for NumPy <2.0 and align
generate_html_report param name (horn_length -> length).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@timini timini merged commit 45f9c90 into main Mar 1, 2026
7 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.

1 participant