Commit 2c92503
Enforce waveform minimum frequency location in v0.7 (#107)
* Initial plan
* Add minimum frequency field to Waveform and update validation
Co-authored-by: transientlunatic <4365778+transientlunatic@users.noreply.github.com>
* Update config templates to use waveform minimum frequency
Co-authored-by: transientlunatic <4365778+transientlunatic@users.noreply.github.com>
* Move validation before pipeline init and improve error handling
Co-authored-by: transientlunatic <4365778+transientlunatic@users.noreply.github.com>
* Fix meta_defaults access in validation code
Co-authored-by: transientlunatic <4365778+transientlunatic@users.noreply.github.com>
* Fix type definition and add waveform variable to templates
- Change minimum_frequency type to dict[str, float] only (remove float option)
- Add waveform variable assignment to bilby.ini and lalinference.ini templates
- Use waveform shorthand in lalinference.ini for consistency
Co-authored-by: transientlunatic <4365778+transientlunatic@users.noreply.github.com>
* Add robust error handling for minimum frequency validation
- Add type checking in bayeswave.py flow property
- Add type checking in pesummary.py for both SubjectAnalysis and single analysis paths
- Add type checking in pipeline.py PESummaryPipeline
- Ensure all code paths validate that minimum frequency is a non-empty dict before calling .values()
Co-authored-by: transientlunatic <4365778+transientlunatic@users.noreply.github.com>
* Split external blueprint tests to separate CI job
- Create local copies of external blueprints with correct v0.7 waveform structure
in tests/test_data/blueprints/
- Refactor test_specific_events.py to use local blueprints (must pass) with
__file__-based absolute paths to be robust against cwd pollution from other tests
- Add tests/external_blueprint_compat.py for external URL tests (not auto-discovered
by unittest discover since file doesn't match test*.py pattern)
- Add test-external-blueprints CI job to python-app.yml with continue-on-error: true
(runs on single Python version only)
- Fix bayeswave.py: use setdefault() for quality dict to avoid KeyError when quality
section doesn't exist in meta
- Fix analysis.py: calculate maximum frequency even when quality section is absent
from event blueprint
Co-authored-by: transientlunatic <4365778+transientlunatic@users.noreply.github.com>
* Update changelog and fix all tests to use local blueprints
- Add 'Unreleased' section to CHANGELOG.rst documenting the breaking change
for minimum frequency location with migration guide and PR reference
- Update tests/blueprints.py helper module with absolute paths to local blueprint files
- Create tests/test_data/blueprints/production-pe-priors.yaml (local copy)
- Create tests/test_data/blueprints/gwtc-2-1/GW150914_095045.yaml (v0.7 compliant)
- Update test_dag.py, test_cli_manage.py, test_yaml.py, test_review.py, and
tests/test_pipelines/test_bilby.py to use local blueprints via the blueprints module
instead of external git.ligo.org URLs
Co-authored-by: transientlunatic <4365778+transientlunatic@users.noreply.github.com>
* Fix test_build_submit_dryruns: add copy frames and osg to bayeswave defaults
The local production-pe.yaml was missing copy frames: True and osg: True in
the bayeswave scheduler section. These settings are present in the external
production-pe.yaml and are needed for the --copy-frames and --transfer-files
flags to appear in the BayesWave build_dag dryrun output, which
test_build_submit_dryruns asserts are present.
Co-authored-by: transientlunatic <4365778+transientlunatic@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: transientlunatic <4365778+transientlunatic@users.noreply.github.com>1 parent aa8cff7 commit 2c92503
File tree
37 files changed
+868
-93
lines changed- .github/workflows
- asimov
- configs
- pipelines
- tests
- test_data
- blueprints
- gwtc-2-1
- test_pipelines
37 files changed
+868
-93
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
46 | 79 | | |
47 | 80 | | |
48 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
1 | 39 | | |
2 | 40 | | |
3 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1673 | 1673 | | |
1674 | 1674 | | |
1675 | 1675 | | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
| 1679 | + | |
| 1680 | + | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
| 1688 | + | |
| 1689 | + | |
| 1690 | + | |
| 1691 | + | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
1676 | 1707 | | |
1677 | 1708 | | |
1678 | 1709 | | |
| |||
1701 | 1732 | | |
1702 | 1733 | | |
1703 | 1734 | | |
1704 | | - | |
1705 | | - | |
1706 | | - | |
1707 | | - | |
1708 | | - | |
| 1735 | + | |
| 1736 | + | |
| 1737 | + | |
1709 | 1738 | | |
1710 | 1739 | | |
1711 | 1740 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
92 | 97 | | |
93 | 98 | | |
94 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
79 | 80 | | |
80 | 81 | | |
81 | 82 | | |
82 | | - | |
| 83 | + | |
83 | 84 | | |
84 | 85 | | |
85 | 86 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
84 | | - | |
| 85 | + | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | | - | |
| 90 | + | |
90 | 91 | | |
91 | 92 | | |
92 | 93 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
522 | 522 | | |
523 | 523 | | |
524 | 524 | | |
| 525 | + | |
| 526 | + | |
| 527 | + | |
| 528 | + | |
| 529 | + | |
| 530 | + | |
| 531 | + | |
| 532 | + | |
| 533 | + | |
525 | 534 | | |
526 | 535 | | |
527 | 536 | | |
| |||
537 | 546 | | |
538 | 547 | | |
539 | 548 | | |
540 | | - | |
| 549 | + | |
541 | 550 | | |
542 | 551 | | |
543 | 552 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| |||
288 | 288 | | |
289 | 289 | | |
290 | 290 | | |
291 | | - | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
292 | 305 | | |
293 | 306 | | |
294 | 307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | | - | |
272 | | - | |
273 | | - | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
274 | 280 | | |
275 | 281 | | |
276 | 282 | | |
| |||
359 | 365 | | |
360 | 366 | | |
361 | 367 | | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | | - | |
366 | | - | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
367 | 380 | | |
368 | 381 | | |
369 | 382 | | |
| |||
0 commit comments