specmod 0.4.0__tar.gz → 0.6.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- specmod-0.6.0/.github/workflows/pr-title.yml +30 -0
- specmod-0.6.0/.release-please-manifest.json +3 -0
- {specmod-0.4.0 → specmod-0.6.0}/AGENTS.md +7 -0
- {specmod-0.4.0 → specmod-0.6.0}/CHANGELOG.md +62 -0
- {specmod-0.4.0 → specmod-0.6.0}/PKG-INFO +1 -1
- {specmod-0.4.0 → specmod-0.6.0}/datasets/magna_2020.toml +6 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/REFACTOR_PLAN.md +64 -27
- {specmod-0.4.0 → specmod-0.6.0}/docs/_builders/specmod_tutorial.py +69 -9
- {specmod-0.4.0 → specmod-0.6.0}/docs/releasing-data.md +47 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/roadmap.md +113 -4
- {specmod-0.4.0 → specmod-0.6.0}/docs/upgrading.md +104 -3
- specmod-0.6.0/src/specmod/acquire.py +643 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/config/__init__.py +3 -1
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/config/layers.py +77 -1
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/config/sections.py +16 -2
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/config/serialize.py +9 -2
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/fitting/spectrum.py +5 -4
- specmod-0.6.0/tests/golden/reference.toml +115 -0
- specmod-0.6.0/tests/test_acquire.py +865 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_config.py +21 -5
- specmod-0.6.0/tests/test_config_pinning.py +155 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_fitting_defaults.py +40 -2
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_golden_reference.py +49 -35
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_magnitude.py +66 -2
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_pipeline.py +16 -1
- specmod-0.6.0/tests/test_pr_title.py +87 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_staged.py +10 -1
- specmod-0.6.0/tools/check_pr_title.py +131 -0
- {specmod-0.4.0 → specmod-0.6.0}/tools/make_golden.py +30 -19
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/specmod-tutorial.ipynb +101 -33
- specmod-0.4.0/.release-please-manifest.json +0 -3
- specmod-0.4.0/src/specmod/acquire.py +0 -358
- specmod-0.4.0/tests/test_acquire.py +0 -375
- {specmod-0.4.0 → specmod-0.6.0}/.git-blame-ignore-revs +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/.github/workflows/build.yml +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/.github/workflows/docs.yml +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/.github/workflows/release.yml +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/.github/workflows/test.yml +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/.gitignore +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/.pre-commit-config.yaml +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/.readthedocs.yaml +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/CITATION.cff +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/CLAUDE.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/CONTRIBUTING.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/LICENSE +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/README.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/datasets/pnr_2019.toml +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_builders/_notebook.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_builders/choosing_a_transform.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/academic.css +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/OFL-fira-code.txt +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/OFL-merriweather.txt +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/OFL-open-sans.txt +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/README.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/fira-code-400-greek.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/fira-code-400-latin-ext.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/fira-code-400-latin.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/merriweather-latin-ext.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/merriweather-latin.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/open-sans-greek.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/open-sans-latin-ext.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/open-sans-latin.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts.css +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/LICENSE +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/README.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/katex.min.css +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/specmod-logo-academic-dark-mark.svg +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/specmod-logo-academic-dark.svg +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/specmod-logo-academic-mark.svg +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/_static/specmod-logo-academic.svg +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/api.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/branding.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/choosing-a-transform.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/conf.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/contributing.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/development.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/documentation.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/getting-started.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/guides.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/index.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/notebooks/choosing-a-transform.ipynb +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/notes/api-audit.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/notes/window-position.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/pick-formats.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/processing.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/docs/releasing.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/pyproject.toml +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/release-please-config.json +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/requirements.txt +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/__init__.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/_vendor/__init__.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/_vendor/qiinv.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/api.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/cli.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/config/provenance.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/core/__init__.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/core/bandwidth.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/core/collection.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/core/noise.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/core/scalogram.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/core/spectrum.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/core/units.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/datasets.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/distance.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/exceptions.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/fitting/__init__.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/fitting/base.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/fitting/event.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/fitting/guess.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/io/__init__.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/io/backend.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/io/hdf5.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/io/layout.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/magnitude.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/picks/__init__.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/picks/base.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/picks/delimited.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/picks/events.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/picks/resolution.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/picks/snuffler.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/pipeline.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/plotting/__init__.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/plotting/grid.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/plotting/pair.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/plotting/style.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/preprocess.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/smoothing/__init__.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/smoothing/base.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/smoothing/konno_ohmachi.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/smoothing/log_bins.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/smoothing/log_window.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/smoothing/savitzky_golay.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/sources/__init__.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/sources/attenuation.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/sources/composite.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/sources/motion.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/sources/source.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/spreading.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/staged.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/tables.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/transforms/__init__.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/transforms/base.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/transforms/cwt.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/transforms/fft.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/transforms/multitaper.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/transforms/prieto.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/transforms/quadratic.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/src/specmod/utils.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/README.md +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/lmfit/__init__.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/lmfit/model.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/lmfit/parameter.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/__init__.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/clients/__init__.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/clients/fdsn/__init__.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/__init__.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/event.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/inventory.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/stream.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/trace.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/utcdatetime.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/util/__init__.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/util/base.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/geodetics/__init__.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/signal/__init__.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/signal/konnoohmachismoothing.pyi +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/studies/magna_2020_paper.toml +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/__init__.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/conftest.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/golden/motion_reference.json +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/golden/pipeline_reference.json +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/golden/window_reference.json +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_ambient_state.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_api_surface.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_collection.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_cwt.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_datasets.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_docs_are_current.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_end_to_end.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_import.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_io_and_plotting.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_legacy_fixes.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_make_golden.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_pick_plugins.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_pick_readers.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_picks.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_pipeline_smoke.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_preprocess.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_prieto.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_quadratic.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_release_config.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_smoothing.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_sources.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_spectral_wiring.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_stubs.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_tools_track_the_api.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_transforms.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_tutorial.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_typing_backlog.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_utils.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tests/test_versioning.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tools/check_built_version.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tools/check_floors.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tools/make_logo.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tools/measure_docs.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tools/vendor_fonts.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tools/vendor_katex.py +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/picks/2019-08-26T07:30:47.000000Z.picks +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/picks/2019-08-26T07:30:47.000000Z.xml +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/stations/inventory.xml +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L001..HHE_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L001..HHN_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L001..HHZ_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L002..HHE_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L002..HHN_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L002..HHZ_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L006..HHE_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L006..HHN_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L006..HHZ_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L007..HHE_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L007..HHN_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L007..HHZ_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L008..HHE_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L008..HHN_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L008..HHZ_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L009..HHE_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L009..HHN_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.L009..HHZ_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.LD06..HH1_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.LD06..HH2_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/LV.LD06..HH3_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ01.00.HHE_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ01.00.HHN_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ01.00.HHZ_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ02.00.HHZ_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ03.00.HHE_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ03.00.HHN_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ03.00.HHZ_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ04.00.HHE_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ04.00.HHN_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ04.00.HHZ_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ05.00.HHE_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ05.00.HHN_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ05.00.HHZ_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ06.00.HHE_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ06.00.HHN_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ06.00.HHZ_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ07.00.HHE_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ07.00.HHN_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ07.00.HHZ_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ09.00.HHE_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ09.00.HHN_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ09.00.HHZ_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ10.00.HHE_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ10.00.HHN_2019-08-26T07:30:47.000000Z +0 -0
- {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/waveforms/UR.AQ10.00.HHZ_2019-08-26T07:30:47.000000Z +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
name: pr-title
|
|
2
|
+
|
|
3
|
+
# A squash merge replaces the branch's commit subjects with this title, so the
|
|
4
|
+
# title is what release-please parses for the version bump and the changelog.
|
|
5
|
+
# `edited` is in the list because a title is most often fixed after the check
|
|
6
|
+
# has already failed once.
|
|
7
|
+
on:
|
|
8
|
+
pull_request:
|
|
9
|
+
types: [opened, edited, reopened]
|
|
10
|
+
|
|
11
|
+
# `pull_request`, not `pull_request_target`: this reads a title an outside
|
|
12
|
+
# contributor controls, and must never do so with a write token.
|
|
13
|
+
permissions: {}
|
|
14
|
+
|
|
15
|
+
concurrency:
|
|
16
|
+
group: pr-title-${{ github.event.pull_request.number }}
|
|
17
|
+
cancel-in-progress: true
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
pr-title:
|
|
21
|
+
runs-on: ubuntu-latest
|
|
22
|
+
steps:
|
|
23
|
+
- uses: actions/checkout@v7
|
|
24
|
+
- name: The title must be a Conventional Commit
|
|
25
|
+
# Through the environment rather than as an argument: the title is
|
|
26
|
+
# attacker-chosen text, and `${{ }}` interpolation into a shell command
|
|
27
|
+
# would execute it.
|
|
28
|
+
env:
|
|
29
|
+
PR_TITLE: ${{ github.event.pull_request.title }}
|
|
30
|
+
run: python tools/check_pr_title.py
|
|
@@ -41,6 +41,13 @@ to generate `CHANGELOG.md`. See
|
|
|
41
41
|
- Say *why*, with the measurement if there was one. The history is the record
|
|
42
42
|
of what was checked; a message that only restates the diff wastes it.
|
|
43
43
|
|
|
44
|
+
**The pull request title is one of them.** A squash merge discards every
|
|
45
|
+
subject on the branch and uses the title instead, composed by GitHub after all
|
|
46
|
+
local hooks have run, so the `commit-msg` hook never sees it. `pr-title.yml`
|
|
47
|
+
checks it against the same types `release-please-config.json` declares. Merging
|
|
48
|
+
with a merge commit keeps the individual subjects and is the safer default; the
|
|
49
|
+
check is what makes a squash safe when one is used anyway.
|
|
50
|
+
|
|
44
51
|
## Workflow files need a permission you may not have
|
|
45
52
|
|
|
46
53
|
`.github/workflows/` is editable directly, but only when the session's GitHub
|
|
@@ -9,6 +9,68 @@ release could have this problem — every later one has a real predecessor tag
|
|
|
9
9
|
so leave subsequent headings as generated. release-please only prepends to this
|
|
10
10
|
file, so this edit survives. -->
|
|
11
11
|
|
|
12
|
+
## [0.6.0](https://github.com/sgjholt/SpecMod/compare/v0.5.0...v0.6.0) (2026-09-27)
|
|
13
|
+
|
|
14
|
+
<!-- One Documentation line below was removed by hand, the third edit in this
|
|
15
|
+
file. release-please listed the roadmap entry twice: once for 9f35727, the
|
|
16
|
+
commit, and again for ed4e10c, the merge commit of #48, whose body repeated the
|
|
17
|
+
commit's subject and so parsed as a second commit. The entry kept points at the
|
|
18
|
+
commit itself. release-please only prepends to this file, so the edit
|
|
19
|
+
survives. -->
|
|
20
|
+
|
|
21
|
+
### ⚠ BREAKING CHANGES
|
|
22
|
+
|
|
23
|
+
* **config:** default to FFT with Konno-Ohmachi smoothing
|
|
24
|
+
|
|
25
|
+
### Features
|
|
26
|
+
|
|
27
|
+
* **config:** default to FFT with Konno-Ohmachi smoothing ([1081364](https://github.com/sgjholt/SpecMod/commit/108136484a55ea5cc6c3490ced0fc8cdaf0052b5))
|
|
28
|
+
* **config:** hold a configuration across an ambient read, and pin the goldens ([71a4e9c](https://github.com/sgjholt/SpecMod/commit/71a4e9c68c60c7ded332b6e2cdecd8da7c0b7a99))
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
### Documentation
|
|
32
|
+
|
|
33
|
+
* **fitting:** say what the fit reads, and document it as a modelling choice ([33975ed](https://github.com/sgjholt/SpecMod/commit/33975ed1042e7374e7750c46aa879e666cf0296a))
|
|
34
|
+
* **roadmap:** file the station selection as shipped in v0.5.0 ([9f35727](https://github.com/sgjholt/SpecMod/commit/9f357276a6e6a7fd4694cd5107405b4d53f12f44))
|
|
35
|
+
|
|
36
|
+
## [0.5.0](https://github.com/sgjholt/SpecMod/compare/v0.4.0...v0.5.0) (2026-09-19)
|
|
37
|
+
|
|
38
|
+
<!-- The `acquire` entries below are edited by hand, and are the second entry
|
|
39
|
+
in this file that is. The work shipped in 2af57e8, the squash merge of #45,
|
|
40
|
+
whose subject is not a Conventional Commit — release-please could not parse it
|
|
41
|
+
("unexpected token ' ' at 1:5") and generated nothing for it. What it did
|
|
42
|
+
generate was the later commit that restored the record, which is documentation
|
|
43
|
+
describing the change rather than the change. These name the change and point
|
|
44
|
+
at the commit that carries it. release-please only prepends to this file, so
|
|
45
|
+
the edit survives. -->
|
|
46
|
+
|
|
47
|
+
### Features
|
|
48
|
+
|
|
49
|
+
* **acquire:** rank co-sited instruments with `channel_priorities` and
|
|
50
|
+
`location_priorities`, so a station carrying a broadband and an
|
|
51
|
+
accelerometer contributes one record rather than two
|
|
52
|
+
([2af57e8](https://github.com/sgjholt/SpecMod/commit/2af57e8e958d474a25e34b9065f9e54d1a1a42fa))
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
### Bug Fixes
|
|
56
|
+
|
|
57
|
+
* **acquire:** ask for waveforms by name, so `max_radius_km` applies to the
|
|
58
|
+
download and not only to the station query — FDSN dataselect takes no
|
|
59
|
+
geographic parameters, so a wildcard request was unbounded
|
|
60
|
+
([2af57e8](https://github.com/sgjholt/SpecMod/commit/2af57e8e958d474a25e34b9065f9e54d1a1a42fa))
|
|
61
|
+
* **acquire:** cut the radius against true WGS84 distance rather than a fixed
|
|
62
|
+
111.195 km per degree, which moved the boundary by up to half a percent with
|
|
63
|
+
latitude; `min_radius_km` now applies on its own, and a non-positive radius
|
|
64
|
+
or an inverted annulus is refused
|
|
65
|
+
([2af57e8](https://github.com/sgjholt/SpecMod/commit/2af57e8e958d474a25e34b9065f9e54d1a1a42fa))
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
### Documentation
|
|
69
|
+
|
|
70
|
+
* **acquire:** upgrading notes for the station selection, and for the
|
|
71
|
+
`[smoothing] method` behaviour change in 0.4.0 ([b460d19](https://github.com/sgjholt/SpecMod/commit/b460d1922c21822a81b6aeb06aa6d5f7193d92e1))
|
|
72
|
+
* **roadmap:** file v0.4.0 as shipped, and the acquire work as merged ([e113abb](https://github.com/sgjholt/SpecMod/commit/e113abb97d80737a2c4a791a6543d945bdb7ba9c))
|
|
73
|
+
|
|
12
74
|
## [0.4.0](https://github.com/sgjholt/SpecMod/compare/v0.3.0...v0.4.0) (2026-09-16)
|
|
13
75
|
|
|
14
76
|
|
|
@@ -35,6 +35,12 @@ location = "*"
|
|
|
35
35
|
# fetched too: the workflow rotates horizontals to R/T, and rotation is not a
|
|
36
36
|
# reason to discard Z from the archive.
|
|
37
37
|
channel = "HH*,BH*,HN*,EN*"
|
|
38
|
+
# Deliberately unranked. `channel_priorities` would keep one instrument per
|
|
39
|
+
# station — the right default for a regional dataset, and what silences the
|
|
40
|
+
# co-sited warning this fetch prints — but here the near-source broadbands are
|
|
41
|
+
# the records most likely to clip, and the accelerometer beside them is the
|
|
42
|
+
# reason the paper covers that distance range at all. Both are kept and the
|
|
43
|
+
# choice is made at processing time.
|
|
38
44
|
max_radius_km = 400.0
|
|
39
45
|
|
|
40
46
|
[window]
|
|
@@ -2434,6 +2434,15 @@ Two design constraints worth fixing now:
|
|
|
2434
2434
|
reimplementation of `MassDownloader`, which is built for large restricted-data
|
|
2435
2435
|
campaigns and is more machinery than this needs.
|
|
2436
2436
|
|
|
2437
|
+
What that choice costs, recorded as it is paid: `MassDownloader` supplies
|
|
2438
|
+
`CircularDomain`, `sanitize=True` and `channel_priorities` for free, and each
|
|
2439
|
+
has had to be built by hand here after its absence showed up in a live fetch.
|
|
2440
|
+
The radius reaching only the station query, an archive holding waveforms with
|
|
2441
|
+
no metadata beside them, and 507 channels for 88 stations were all one
|
|
2442
|
+
property of `Restrictions` each. The wrapper stays thin, but "ObsPy already
|
|
2443
|
+
does it" is an argument for reading what ObsPy does before writing the thin
|
|
2444
|
+
version.
|
|
2445
|
+
|
|
2437
2446
|
TOML is suggested for the config, read by stdlib `tomllib` on 3.11+ and
|
|
2438
2447
|
consistent with `pyproject.toml`. YAML is equally fine if it reads better for
|
|
2439
2448
|
nested station rules; it costs one small dependency.
|
|
@@ -3468,11 +3477,15 @@ bumping `smoothing.n_bins` from 151 to 158 and running the suite — and **9 of
|
|
|
3468
3477
|
25 golden tests fail**, loudly. The golden values live in a committed JSON
|
|
3469
3478
|
file, so any behaviour change breaks them whatever moved it.
|
|
3470
3479
|
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3480
|
+
**Closed in 0.6.** `specmod.config.using()` holds a configuration across the
|
|
3481
|
+
ambient reads the pipeline makes — a `ContextVar`, so it does not leak between
|
|
3482
|
+
threads, and explicit arguments still win — and `tests/golden/reference.toml`
|
|
3483
|
+
carries every setting the committed numbers were captured under, not an
|
|
3484
|
+
overlay that would inherit future default changes for whatever it omitted.
|
|
3485
|
+
`tools/make_golden.py` captures inside the pin and the golden suite compares
|
|
3486
|
+
inside it, so the property the claim asserted now holds: changing a shipped
|
|
3487
|
+
default leaves every committed number untouched. Measured by doing it — the
|
|
3488
|
+
0.6 change of default moved 11 golden tests before the pin and none after.
|
|
3476
3489
|
|
|
3477
3490
|
**Claims that were checked and hold:**
|
|
3478
3491
|
|
|
@@ -3708,33 +3721,57 @@ changes anything shipped.
|
|
|
3708
3721
|
|
|
3709
3722
|
### Still open
|
|
3710
3723
|
|
|
3711
|
-
1.
|
|
3712
|
-
|
|
3713
|
-
|
|
3714
|
-
|
|
3715
|
-
|
|
3716
|
-
|
|
3717
|
-
|
|
3718
|
-
|
|
3719
|
-
| `fft` + `log_bins` | −0.
|
|
3720
|
-
| `fft` + `konno_ohmachi` |
|
|
3721
|
-
|
|
3722
|
-
|
|
3723
|
-
|
|
3724
|
-
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3724
|
+
1. ~~**Default estimator.**~~ **Resolved: FFT + Konno-Ohmachi**, from 0.6. The
|
|
3725
|
+
measurement below is what decided it, on the 28 PNR channels, each fitted
|
|
3726
|
+
independently (stage one) on velocity, which is the motion the pipeline fits
|
|
3727
|
+
by default and from which `llpsp` is the displacement plateau:
|
|
3728
|
+
|
|
3729
|
+
| Against the shipped multitaper + `log_bins` | Median ΔMw | Per-station ΔMw | `fc` ratio, median (range) | Median band (decades) | Median points fitted |
|
|
3730
|
+
|---|---|---|---|---|---|
|
|
3731
|
+
| `multitaper` + `log_bins` | — | — | — | 1.73 | 113 |
|
|
3732
|
+
| `fft` + `log_bins` | −0.079 | −0.71 to +0.23 | 0.91 (0.18 to 3.9) | 1.55 | 107 |
|
|
3733
|
+
| `fft` + `konno_ohmachi` | −0.068 | −0.25 to +0.19 | 0.82 (0.17 to 3.5) | 1.68 | 120 |
|
|
3734
|
+
| `fft` + `konno_ohmachi`, `fit_bins = true` | −0.073 | −0.25 to +0.15 | 0.90 (0.18 to 2.2) | 1.68 | 120 |
|
|
3735
|
+
|
|
3736
|
+
**What each setting reaches.** The estimator sets the spectrum that is
|
|
3737
|
+
fitted. The smoother sets the band: the signal-to-noise ratio and the gate
|
|
3738
|
+
are computed on smoothed spectra. With `[fitting] fit_bins = false`, the
|
|
3739
|
+
default in 0.1.1 and since, the fit and the initial guess both read the
|
|
3740
|
+
*unsmoothed* amplitudes inside that band, so the smoother reaches `Omega`
|
|
3741
|
+
only through the band. The two default-path FFT rows therefore fit identical
|
|
3742
|
+
amplitudes, and the whole difference between them — the per-station range
|
|
3743
|
+
narrowing from −0.71/+0.23 to −0.25/+0.19 — comes from Konno–Ohmachi
|
|
3744
|
+
selecting a wider band. Fitting the smoothed spectrum instead
|
|
3745
|
+
(`fit_bins = true`) changes little further on this event.
|
|
3746
|
+
|
|
3747
|
+
Measured on displacement instead, the same comparison gives −0.85/+0.70 for
|
|
3748
|
+
`fft` + `log_bins` and −0.56/+0.52 for `fft` + `konno_ohmachi`: the same
|
|
3749
|
+
ordering, a wider spread.
|
|
3750
|
+
|
|
3751
|
+
What this event cannot settle, and what the decision therefore does not
|
|
3752
|
+
rest on: the *event* corner is unconstrained under all three (stage-one
|
|
3753
|
+
spread 895% to 1042% of the event value), so the ensemble number is not
|
|
3754
|
+
evidence. On the ensemble, PNR's Mw moves −0.1615 under both constant sets
|
|
3755
|
+
— a pure Omega shift, since the constants are an offset applied afterwards.
|
|
3756
|
+
Against the catalogue's 2.9 the two sets move in opposite directions, the
|
|
3757
|
+
default constants from 0.194 to 0.032 away and §4.7's from 0.160 to 0.321,
|
|
3758
|
+
so they no longer both sit within 0.25. Recorded, not offered as evidence.
|
|
3733
3759
|
|
|
3734
3760
|
Speed, measured rather than assumed and far too small to decide on: the
|
|
3735
3761
|
transform is 0.209 s against 0.323 s for the 28 windows, and the smoothing
|
|
3736
3762
|
adds 0.14 s (`log_bins`) to 0.83 s (`konno_ohmachi`) on top.
|
|
3737
3763
|
|
|
3764
|
+
**What had to be built first.** Changing a default moved 11 golden tests,
|
|
3765
|
+
because §6.6's config pin was a claim with no mechanism: the references were
|
|
3766
|
+
captured under whatever the defaults were. `config.using()` and
|
|
3767
|
+
`tests/golden/reference.toml` close that, so the references now hold their
|
|
3768
|
+
own settings and a default change leaves every committed number untouched.
|
|
3769
|
+
|
|
3770
|
+
**The fitting choice is documented where it is made.** Whether the fit
|
|
3771
|
+
reads the unsmoothed or the smoothed spectrum is a modelling decision a user
|
|
3772
|
+
should make knowingly, so the tutorial's *What the fit reads* states the
|
|
3773
|
+
default and fits the event both ways.
|
|
3774
|
+
|
|
3738
3775
|
2. **Python floor.** 3.11 is proposed. Any users stuck on 3.9/3.10?
|
|
3739
3776
|
3. **History rewrite.** Deleting the 9.9 MB catalog and stripping the notebook
|
|
3740
3777
|
(§5.1) shrinks the *working tree* but leaves both in history, so a fresh clone
|
|
@@ -237,12 +237,14 @@ spectrum_set_from_streams
|
|
|
237
237
|
```
|
|
238
238
|
|
|
239
239
|
`spectrum_set_from_streams` transforms both windows, puts the noise on the
|
|
240
|
-
signal's frequency axis,
|
|
241
|
-
*under* the signal, takes the ratio and selects the band where it passes.
|
|
240
|
+
signal's frequency axis, smooths both, raises the noise to account for what
|
|
241
|
+
sits *under* the signal, takes the ratio and selects the band where it passes.
|
|
242
|
+
The smoothing is Konno–Ohmachi by default (`[smoothing] method`). It is used
|
|
243
|
+
for the ratio and the band, not for the fit — see *What the fit reads* below.
|
|
242
244
|
|
|
243
245
|
Which estimator is used is configuration, not code: `fft`, `welch`,
|
|
244
246
|
`multitaper`, `quadratic` and `cwt` all satisfy the same Parseval contract, so
|
|
245
|
-
they are interchangeable here. The shipped default is `
|
|
247
|
+
they are interchangeable here. The shipped default is `fft`.
|
|
246
248
|
""")
|
|
247
249
|
|
|
248
250
|
|
|
@@ -256,7 +258,7 @@ print(
|
|
|
256
258
|
|
|
257
259
|
|
|
258
260
|
code("""
|
|
259
|
-
# One station in detail: signal, noise, the
|
|
261
|
+
# One station in detail: signal, noise, the smoothed spectra the ratio is
|
|
260
262
|
# actually computed on, the selected band (red) and the resolution floor (grey).
|
|
261
263
|
from specmod.plotting import plot_pair, plot_set
|
|
262
264
|
|
|
@@ -453,9 +455,10 @@ displacement = spectra.to_motion("displacement")
|
|
|
453
455
|
print(f"velocity {spectra[station].signal.unit}")
|
|
454
456
|
print(f"displacement {displacement[station].signal.unit}")
|
|
455
457
|
|
|
456
|
-
# The
|
|
457
|
-
# divided by the same 2*pi*f — but the
|
|
458
|
-
#
|
|
458
|
+
# The unsmoothed signal-to-noise ratio is invariant under this — both spectra
|
|
459
|
+
# are divided by the same 2*pi*f — but the smoothed ratio is not: Konno-Ohmachi
|
|
460
|
+
# averages amplitudes across a window over which 2*pi*f changes, so some
|
|
461
|
+
# bands move.
|
|
459
462
|
moved = [i for i in spectra.ids() if spectra[i].band != displacement[i].band]
|
|
460
463
|
print(f"bands that moved: {len(moved)} of {len(spectra)}")
|
|
461
464
|
""")
|
|
@@ -473,9 +476,10 @@ from the largest amplitude inside the band, the corner from where that
|
|
|
473
476
|
maximum falls.
|
|
474
477
|
|
|
475
478
|
`FitSpectra(spectra)` then `fit_spectra()` is the whole thing. The minimiser
|
|
476
|
-
(Powell), the `t*` lower bound and whether to fit the
|
|
479
|
+
(Powell), the `t*` lower bound and whether to fit the smoothed or unsmoothed
|
|
477
480
|
spectrum all come from `[fitting]` in the configuration, so the defaults are
|
|
478
|
-
recorded rather than remembered.
|
|
481
|
+
recorded rather than remembered. The last of those is a modelling choice with
|
|
482
|
+
consequences; *What the fit reads* below compares the two.
|
|
479
483
|
""")
|
|
480
484
|
|
|
481
485
|
|
|
@@ -551,6 +555,62 @@ fits.table[["id", "fc", "fc-stderr", "llpsp", "ts", "pass_fitting"]].head(10)
|
|
|
551
555
|
""")
|
|
552
556
|
|
|
553
557
|
|
|
558
|
+
md("""
|
|
559
|
+
### What the fit reads
|
|
560
|
+
|
|
561
|
+
The smoothed spectra choose the band — the signal-to-noise ratio and the gate
|
|
562
|
+
are computed on them — but **the fit reads the unsmoothed spectrum inside that
|
|
563
|
+
band**. Smoothing decides *where* the model is fitted, not *what* it is fitted
|
|
564
|
+
to. That is `[fitting] fit_bins = false`, the default, and it is a modelling
|
|
565
|
+
choice:
|
|
566
|
+
|
|
567
|
+
- **Unsmoothed** (the default). Every Fourier sample in the band, each with its
|
|
568
|
+
full scatter. The samples are evenly spaced in Hz, so most of them sit in the
|
|
569
|
+
top decade of the band and dominate an unweighted misfit;
|
|
570
|
+
`[fitting] weight_method = "log"` weights residuals by `1/f` to shift that.
|
|
571
|
+
- **Smoothed** (`fit_bins = true`). The spectrum the band was chosen on. Under
|
|
572
|
+
Konno–Ohmachi that is the same frequencies with the scatter averaged down,
|
|
573
|
+
but neighbouring points share samples, so they are not independent and the
|
|
574
|
+
misfit counts the same information more than once. Under `log_bins` it is
|
|
575
|
+
one value per occupied bin, evenly spaced in log frequency.
|
|
576
|
+
|
|
577
|
+
The cell below fits the event both ways.
|
|
578
|
+
""")
|
|
579
|
+
|
|
580
|
+
|
|
581
|
+
code("""
|
|
582
|
+
smoothed_fits = FitSpectra(spectra, fit_bins=True)
|
|
583
|
+
smoothed_fits.fit_spectra()
|
|
584
|
+
|
|
585
|
+
first = spectra.ids()[0]
|
|
586
|
+
raw_fit, smoothed_fit = fits.models[first], smoothed_fits.models[first]
|
|
587
|
+
low, high = raw_fit.mod_freq[0], raw_fit.mod_freq[-1]
|
|
588
|
+
top_decade = np.mean(raw_fit.mod_freq >= high / 10)
|
|
589
|
+
print(
|
|
590
|
+
f"{first}: {raw_fit.mod_freq.size} points unsmoothed, "
|
|
591
|
+
f"{smoothed_fit.mod_freq.size} smoothed, over {low:.2f}-{high:.2f} Hz"
|
|
592
|
+
)
|
|
593
|
+
print(f" share of the points in the band's top decade: {top_decade:.0%}")
|
|
594
|
+
print(
|
|
595
|
+
" median |difference| in the log10 amplitudes the two fits see: "
|
|
596
|
+
f"{np.median(np.abs(raw_fit.mod_amp - smoothed_fit.mod_amp)):.3f}"
|
|
597
|
+
)
|
|
598
|
+
|
|
599
|
+
raw_table = fits.table.set_index("id")
|
|
600
|
+
smoothed_table = smoothed_fits.table.set_index("id")
|
|
601
|
+
d_plateau = (smoothed_table["llpsp"] - raw_table["llpsp"]).abs()
|
|
602
|
+
fc_ratio = smoothed_table["fc"] / raw_table["fc"]
|
|
603
|
+
print(f"\\nacross {len(raw_table)} channels, smoothed against unsmoothed:")
|
|
604
|
+
print(
|
|
605
|
+
f" |d log10 plateau| median {d_plateau.median():.3f}, max {d_plateau.max():.3f}"
|
|
606
|
+
)
|
|
607
|
+
print(
|
|
608
|
+
f" fc ratio median {fc_ratio.median():.2f}, "
|
|
609
|
+
f"range {fc_ratio.min():.2f} to {fc_ratio.max():.2f}"
|
|
610
|
+
)
|
|
611
|
+
""")
|
|
612
|
+
|
|
613
|
+
|
|
554
614
|
md("""
|
|
555
615
|
### The fit is not unique, and that is not a detail
|
|
556
616
|
|
|
@@ -46,6 +46,10 @@ python -m json.tool build/magna_2020/manifest.json | head -40
|
|
|
46
46
|
- `channels` — the list *after* wildcard expansion. `HH*` does not tell you
|
|
47
47
|
what you got; this does. A much shorter list than expected usually means a
|
|
48
48
|
network was not open at that time, not that the request was malformed.
|
|
49
|
+
- `channels_available`, `channels_requested` — what the station query offered,
|
|
50
|
+
and what was asked for after the priority lists narrowed it. A large gap
|
|
51
|
+
between `channels_requested` and `channels` means the archive did not serve
|
|
52
|
+
what its own metadata advertises.
|
|
49
53
|
- `data_centre`, `obspy_version`, `specmod_version`, `fetched_at` — the
|
|
50
54
|
provenance that makes the response reproducible-ish. It cannot be fully
|
|
51
55
|
reproducible: FDSN is not content-addressed, archives get backfilled and
|
|
@@ -54,6 +58,49 @@ python -m json.tool build/magna_2020/manifest.json | head -40
|
|
|
54
58
|
If any of that is wrong, fix the config and re-fetch. The artefact is about to
|
|
55
59
|
become immutable.
|
|
56
60
|
|
|
61
|
+
### Picking one instrument per station
|
|
62
|
+
|
|
63
|
+
A `channel` pattern that names several instruments — `HH*,BH*,HN*,EN*` — returns
|
|
64
|
+
every one of them at every station that has them. Magna's 88 stations return 507
|
|
65
|
+
channels that way, and a station with both a broadband and an accelerometer
|
|
66
|
+
contributes the same ground motion twice: two entries in a `SpectrumSet`,
|
|
67
|
+
weighted as two stations by anything that averages over them.
|
|
68
|
+
|
|
69
|
+
`channel_priorities` ranks them instead. The first pattern that matches anything
|
|
70
|
+
at a station wins, so the list is read as "a broadband if there is one,
|
|
71
|
+
otherwise an accelerometer":
|
|
72
|
+
|
|
73
|
+
```toml
|
|
74
|
+
[stations]
|
|
75
|
+
channel = "HH*,BH*,HN*,EN*"
|
|
76
|
+
channel_priorities = ["HH[ZNE]", "BH[ZNE]", "HN[ZNE]", "EN[ZNE]"]
|
|
77
|
+
location_priorities = ["", "00", "10"]
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
`channel` still says what the data centre may offer; the priorities say which of
|
|
81
|
+
what it offers to keep. A station matching no pattern at all is dropped — the
|
|
82
|
+
list is a restriction as well as a ranking — and the written `inventory.xml` is
|
|
83
|
+
pruned to match, so the archive keeps describing exactly what it holds.
|
|
84
|
+
|
|
85
|
+
Patterns are matched case-sensitively against SEED codes, which are upper case.
|
|
86
|
+
`["*"]` keeps everything, which is how a config says it wants both instruments
|
|
87
|
+
and means it; with no list at all, `fetch` warns that it is fetching co-sited
|
|
88
|
+
instruments and names the stations.
|
|
89
|
+
|
|
90
|
+
### What the radius means
|
|
91
|
+
|
|
92
|
+
`max_radius_km` is cut against the true WGS84 distance from the epicentre, not
|
|
93
|
+
against the degrees FDSN takes. A degree of arc is 110.574 km at the equator and
|
|
94
|
+
111.691 km at the poles, so converting with a single constant moves the boundary
|
|
95
|
+
by up to half a percent — ±0.3 km on a 50 km radius, ±2 km on 400 km. The
|
|
96
|
+
station query is sent deliberately wide and the exact cut is made locally, which
|
|
97
|
+
costs a few extra stations in the query and makes the radius mean kilometres
|
|
98
|
+
wherever the event is.
|
|
99
|
+
|
|
100
|
+
The radii are epicentral. For a local array the depth is usually the larger
|
|
101
|
+
term: every station of a 500 m array over a 2 km-deep event is at 2 km
|
|
102
|
+
hypocentral distance.
|
|
103
|
+
|
|
57
104
|
## 2. Archive and hash
|
|
58
105
|
|
|
59
106
|
```bash
|
|
@@ -139,6 +139,94 @@ signposted from [Guides](guides.md) rather than split onto a page of their own.
|
|
|
139
139
|
[Upgrading](upgrading.md) covers moving code off the pre-refactor
|
|
140
140
|
`master`.
|
|
141
141
|
|
|
142
|
+
## Shipped in v0.4.0
|
|
143
|
+
|
|
144
|
+
### Smoothing became a choice, and the choice is applied
|
|
145
|
+
|
|
146
|
+
`[smoothing] method` selected nothing. The registry mapped the names, the config
|
|
147
|
+
validated against them, and no code read the result: every spectrum was
|
|
148
|
+
log-binned whatever the setting said. Measured on the 28 PNR windows,
|
|
149
|
+
`log_bins`, `konno_ohmachi` and `none` produced bit-identical output — `none`
|
|
150
|
+
included, which reads as "leave my spectra unsmoothed".
|
|
151
|
+
|
|
152
|
+
It is wired now, with three methods beside the two:
|
|
153
|
+
|
|
154
|
+
- **`log_window`** — constant relative bandwidth over a window you name:
|
|
155
|
+
boxcar, Bartlett, Hann, Hamming, Blackman or Gaussian, a fraction of an
|
|
156
|
+
octave wide everywhere. Konno–Ohmachi is this family with its own window.
|
|
157
|
+
`statistic="median"` discards a spike rather than averaging it in, and
|
|
158
|
+
discards a genuine narrow peak with it.
|
|
159
|
+
- **`savitzky_golay`** — a local polynomial fit in log–log, which keeps peak
|
|
160
|
+
amplitude and width where a running mean flattens both.
|
|
161
|
+
- **`none`** — no smoothing, which now means it.
|
|
162
|
+
|
|
163
|
+
Log-binning replaces the frequency axis; the others preserve it. That is the
|
|
164
|
+
distinction the setting had no way to express, and the reason wiring it up was
|
|
165
|
+
a design change rather than a patch.
|
|
166
|
+
|
|
167
|
+
One detail that is easy to get wrong and is worth knowing about: a window
|
|
168
|
+
symmetric in log frequency is not a symmetric average over samples, because a
|
|
169
|
+
Fourier grid is uniform in Hz. Weighting samples equally tilts the result by
|
|
170
|
+
1.5e-3 dex on an `f**-2` power law; weighting each by its share of the log
|
|
171
|
+
axis brings that to 3.2e-8 dex. The latter is the default. Konno–Ohmachi
|
|
172
|
+
applies the former, by definition, and keeps it.
|
|
173
|
+
|
|
174
|
+
## Shipped in v0.5.0
|
|
175
|
+
|
|
176
|
+
### The station selection means what the config says
|
|
177
|
+
|
|
178
|
+
Three ways a fetched dataset did not match the config that asked for it, all
|
|
179
|
+
found by a live fetch rather than by the suite:
|
|
180
|
+
|
|
181
|
+
- `max_radius_km` reached the station query and never the waveform request,
|
|
182
|
+
because FDSN dataselect has no geographic parameters. A 50 km fetch returned
|
|
183
|
+
channels from 225 km out, with no metadata beside them. Waveforms are now
|
|
184
|
+
asked for by name, from the inventory the station query returned.
|
|
185
|
+
- The radius was converted at 111.195 km per degree. A degree of arc is
|
|
186
|
+
110.574 km at the equator and 111.691 km at the poles, so the boundary moved
|
|
187
|
+
with latitude — ±0.3 km at 50 km, ±2 km at 400 km. The query is now sent
|
|
188
|
+
deliberately wide and the cut made against the true WGS84 distance.
|
|
189
|
+
- A `channel` pattern naming several instruments returned all of them at every
|
|
190
|
+
station, so a broadband and the accelerometer beside it entered the pipeline
|
|
191
|
+
as two independent records of one ground motion. `channel_priorities` and
|
|
192
|
+
`location_priorities` rank them, first match wins per station.
|
|
193
|
+
|
|
194
|
+
## In progress — not yet released
|
|
195
|
+
|
|
196
|
+
Merged on `main`, and it will name its version when a release goes out.
|
|
197
|
+
|
|
198
|
+
### The default is FFT with Konno-Ohmachi smoothing
|
|
199
|
+
|
|
200
|
+
The shipped pair was multitaper with log-binning. Measured on the 28 PNR
|
|
201
|
+
channels, each fitted independently on velocity, against that pair:
|
|
202
|
+
|
|
203
|
+
| | Median ΔMw | Per-station ΔMw | `fc` ratio, median (range) |
|
|
204
|
+
|---|---|---|---|
|
|
205
|
+
| `fft` + `log_bins` | −0.079 | −0.71 to +0.23 | 0.91 (0.18 to 3.9) |
|
|
206
|
+
| `fft` + `konno_ohmachi` | −0.068 | −0.25 to +0.19 | 0.82 (0.17 to 3.5) |
|
|
207
|
+
|
|
208
|
+
By default the fit reads the unsmoothed spectrum inside the band the smoothed
|
|
209
|
+
signal-to-noise ratio selects, so the two FFT rows fit identical amplitudes
|
|
210
|
+
and differ only in the band. Konno–Ohmachi's is wider, and that is what
|
|
211
|
+
narrows the per-station spread. This event's corner is unconstrained under
|
|
212
|
+
every pair, so the event-level number is not evidence either way.
|
|
213
|
+
|
|
214
|
+
**Every result moves** unless a configuration already pinned both settings.
|
|
215
|
+
[Upgrading](upgrading.md#from-05-to-06) has what to pin to keep the old
|
|
216
|
+
numbers, and what `[fitting] fit_bins = true` changes: it fits the smoothed
|
|
217
|
+
spectrum instead of the unsmoothed one.
|
|
218
|
+
|
|
219
|
+
### A configuration can be held across an ambient read
|
|
220
|
+
|
|
221
|
+
`config.using()` pins one configuration for everything inside the block,
|
|
222
|
+
including the many pipeline functions that read their settings from call sites
|
|
223
|
+
taking no configuration argument. That was the prerequisite for the change
|
|
224
|
+
above: the golden references were captured under whatever the defaults were,
|
|
225
|
+
so moving a default moved 11 committed numbers, and a deliberate change was
|
|
226
|
+
indistinguishable from a regression. They now carry their own settings in
|
|
227
|
+
`tests/golden/reference.toml`, and a default change leaves every one of them
|
|
228
|
+
untouched.
|
|
229
|
+
|
|
142
230
|
## Planned
|
|
143
231
|
|
|
144
232
|
### 1.0 — the API stops moving
|
|
@@ -157,10 +245,31 @@ backlog is empty, it is settled when it stops moving.
|
|
|
157
245
|
**By that test, 1.0 is not ready.** v0.3.0 is the release that emptied the
|
|
158
246
|
backlog and it carried two breaking changes itself: the ten renamed
|
|
159
247
|
`preprocess` functions, and the tutorial's page moving. So what 1.0 now waits
|
|
160
|
-
on is
|
|
248
|
+
on is a release going out without one — which is a thing that has to be
|
|
161
249
|
observed rather than declared, and cannot be brought forward by finishing
|
|
162
250
|
anything.
|
|
163
251
|
|
|
252
|
+
**v0.4.0 is the first observation, and it is not clean.** No name or signature
|
|
253
|
+
moved: the smoothing work was additive, and the `SpectrumPair.compare`
|
|
254
|
+
parameter it added is optional. But `[smoothing] method` changed what it does,
|
|
255
|
+
so a config that set `konno_ohmachi` or `none` gets different numbers out of
|
|
256
|
+
the same code path. Nothing breaks at import or at the call; results move. That
|
|
257
|
+
is a weaker promise than the one 1.0 makes and a real one to have broken, so
|
|
258
|
+
the count starts again rather than standing at one.
|
|
259
|
+
|
|
260
|
+
**v0.5.0 is not clean either, in the same way.** Nothing was renamed and no
|
|
261
|
+
signature moved. But `max_radius_km` now cuts against true WGS84 distance
|
|
262
|
+
rather than a fixed kilometres-per-degree, so the same config can select a
|
|
263
|
+
different set of stations than it did before, and three radius values that used
|
|
264
|
+
to be accepted — zero, negative, and a minimum outside the maximum — are now
|
|
265
|
+
refused when the config is read. A config is as much a caller as a call site.
|
|
266
|
+
|
|
267
|
+
Twice in a row makes it worth naming: what keeps moving is not the API, it is
|
|
268
|
+
what the API *does* with a setting that was already there. A deprecation cycle
|
|
269
|
+
does not protect against that, since there is nothing to deprecate; the
|
|
270
|
+
[upgrading guide](upgrading.md) is the only thing that does, and 1.0 will not
|
|
271
|
+
change that. The count stands at zero.
|
|
272
|
+
|
|
164
273
|
## After 1.0
|
|
165
274
|
|
|
166
275
|
Designed but deliberately not on the path to 1.0, because each is blocked on
|
|
@@ -185,9 +294,9 @@ guess written from documentation cannot substitute for:
|
|
|
185
294
|
Each shipped entry names the version that carries it, so a reader can install
|
|
186
295
|
that version and check the claim. Work that is merged but unreleased sits under
|
|
187
296
|
*In progress* and gets its version when a release goes out — merged is not
|
|
188
|
-
shipped, and this page does not blur the two.
|
|
189
|
-
|
|
190
|
-
|
|
297
|
+
shipped, and this page does not blur the two. Between releases there is no such
|
|
298
|
+
section at all, which is a state the page should be in rather than a section
|
|
299
|
+
that went missing.
|
|
191
300
|
|
|
192
301
|
The move at release time is the step this page got wrong once. The v0.3.0 work
|
|
193
302
|
sat under *In progress — not yet released* for a week after v0.3.0 was
|