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.
Files changed (276) hide show
  1. specmod-0.6.0/.github/workflows/pr-title.yml +30 -0
  2. specmod-0.6.0/.release-please-manifest.json +3 -0
  3. {specmod-0.4.0 → specmod-0.6.0}/AGENTS.md +7 -0
  4. {specmod-0.4.0 → specmod-0.6.0}/CHANGELOG.md +62 -0
  5. {specmod-0.4.0 → specmod-0.6.0}/PKG-INFO +1 -1
  6. {specmod-0.4.0 → specmod-0.6.0}/datasets/magna_2020.toml +6 -0
  7. {specmod-0.4.0 → specmod-0.6.0}/docs/REFACTOR_PLAN.md +64 -27
  8. {specmod-0.4.0 → specmod-0.6.0}/docs/_builders/specmod_tutorial.py +69 -9
  9. {specmod-0.4.0 → specmod-0.6.0}/docs/releasing-data.md +47 -0
  10. {specmod-0.4.0 → specmod-0.6.0}/docs/roadmap.md +113 -4
  11. {specmod-0.4.0 → specmod-0.6.0}/docs/upgrading.md +104 -3
  12. specmod-0.6.0/src/specmod/acquire.py +643 -0
  13. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/config/__init__.py +3 -1
  14. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/config/layers.py +77 -1
  15. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/config/sections.py +16 -2
  16. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/config/serialize.py +9 -2
  17. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/fitting/spectrum.py +5 -4
  18. specmod-0.6.0/tests/golden/reference.toml +115 -0
  19. specmod-0.6.0/tests/test_acquire.py +865 -0
  20. {specmod-0.4.0 → specmod-0.6.0}/tests/test_config.py +21 -5
  21. specmod-0.6.0/tests/test_config_pinning.py +155 -0
  22. {specmod-0.4.0 → specmod-0.6.0}/tests/test_fitting_defaults.py +40 -2
  23. {specmod-0.4.0 → specmod-0.6.0}/tests/test_golden_reference.py +49 -35
  24. {specmod-0.4.0 → specmod-0.6.0}/tests/test_magnitude.py +66 -2
  25. {specmod-0.4.0 → specmod-0.6.0}/tests/test_pipeline.py +16 -1
  26. specmod-0.6.0/tests/test_pr_title.py +87 -0
  27. {specmod-0.4.0 → specmod-0.6.0}/tests/test_staged.py +10 -1
  28. specmod-0.6.0/tools/check_pr_title.py +131 -0
  29. {specmod-0.4.0 → specmod-0.6.0}/tools/make_golden.py +30 -19
  30. {specmod-0.4.0 → specmod-0.6.0}/tutorial/specmod-tutorial.ipynb +101 -33
  31. specmod-0.4.0/.release-please-manifest.json +0 -3
  32. specmod-0.4.0/src/specmod/acquire.py +0 -358
  33. specmod-0.4.0/tests/test_acquire.py +0 -375
  34. {specmod-0.4.0 → specmod-0.6.0}/.git-blame-ignore-revs +0 -0
  35. {specmod-0.4.0 → specmod-0.6.0}/.github/workflows/build.yml +0 -0
  36. {specmod-0.4.0 → specmod-0.6.0}/.github/workflows/docs.yml +0 -0
  37. {specmod-0.4.0 → specmod-0.6.0}/.github/workflows/release.yml +0 -0
  38. {specmod-0.4.0 → specmod-0.6.0}/.github/workflows/test.yml +0 -0
  39. {specmod-0.4.0 → specmod-0.6.0}/.gitignore +0 -0
  40. {specmod-0.4.0 → specmod-0.6.0}/.pre-commit-config.yaml +0 -0
  41. {specmod-0.4.0 → specmod-0.6.0}/.readthedocs.yaml +0 -0
  42. {specmod-0.4.0 → specmod-0.6.0}/CITATION.cff +0 -0
  43. {specmod-0.4.0 → specmod-0.6.0}/CLAUDE.md +0 -0
  44. {specmod-0.4.0 → specmod-0.6.0}/CONTRIBUTING.md +0 -0
  45. {specmod-0.4.0 → specmod-0.6.0}/LICENSE +0 -0
  46. {specmod-0.4.0 → specmod-0.6.0}/README.md +0 -0
  47. {specmod-0.4.0 → specmod-0.6.0}/datasets/pnr_2019.toml +0 -0
  48. {specmod-0.4.0 → specmod-0.6.0}/docs/_builders/_notebook.py +0 -0
  49. {specmod-0.4.0 → specmod-0.6.0}/docs/_builders/choosing_a_transform.py +0 -0
  50. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/academic.css +0 -0
  51. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/OFL-fira-code.txt +0 -0
  52. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/OFL-merriweather.txt +0 -0
  53. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/OFL-open-sans.txt +0 -0
  54. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/README.md +0 -0
  55. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/fira-code-400-greek.woff2 +0 -0
  56. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/fira-code-400-latin-ext.woff2 +0 -0
  57. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/fira-code-400-latin.woff2 +0 -0
  58. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/merriweather-latin-ext.woff2 +0 -0
  59. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/merriweather-latin.woff2 +0 -0
  60. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/open-sans-greek.woff2 +0 -0
  61. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/open-sans-latin-ext.woff2 +0 -0
  62. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts/open-sans-latin.woff2 +0 -0
  63. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/fonts.css +0 -0
  64. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/LICENSE +0 -0
  65. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/README.md +0 -0
  66. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  67. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  68. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  69. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  70. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  71. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Main-Bold.woff2 +0 -0
  72. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  73. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Main-Italic.woff2 +0 -0
  74. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Main-Regular.woff2 +0 -0
  75. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  76. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Math-Italic.woff2 +0 -0
  77. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  78. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  79. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  80. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Script-Regular.woff2 +0 -0
  81. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  82. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  83. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  84. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  85. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  86. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/katex/katex.min.css +0 -0
  87. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/specmod-logo-academic-dark-mark.svg +0 -0
  88. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/specmod-logo-academic-dark.svg +0 -0
  89. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/specmod-logo-academic-mark.svg +0 -0
  90. {specmod-0.4.0 → specmod-0.6.0}/docs/_static/specmod-logo-academic.svg +0 -0
  91. {specmod-0.4.0 → specmod-0.6.0}/docs/api.md +0 -0
  92. {specmod-0.4.0 → specmod-0.6.0}/docs/branding.md +0 -0
  93. {specmod-0.4.0 → specmod-0.6.0}/docs/choosing-a-transform.md +0 -0
  94. {specmod-0.4.0 → specmod-0.6.0}/docs/conf.py +0 -0
  95. {specmod-0.4.0 → specmod-0.6.0}/docs/contributing.md +0 -0
  96. {specmod-0.4.0 → specmod-0.6.0}/docs/development.md +0 -0
  97. {specmod-0.4.0 → specmod-0.6.0}/docs/documentation.md +0 -0
  98. {specmod-0.4.0 → specmod-0.6.0}/docs/getting-started.md +0 -0
  99. {specmod-0.4.0 → specmod-0.6.0}/docs/guides.md +0 -0
  100. {specmod-0.4.0 → specmod-0.6.0}/docs/index.md +0 -0
  101. {specmod-0.4.0 → specmod-0.6.0}/docs/notebooks/choosing-a-transform.ipynb +0 -0
  102. {specmod-0.4.0 → specmod-0.6.0}/docs/notes/api-audit.md +0 -0
  103. {specmod-0.4.0 → specmod-0.6.0}/docs/notes/window-position.md +0 -0
  104. {specmod-0.4.0 → specmod-0.6.0}/docs/pick-formats.md +0 -0
  105. {specmod-0.4.0 → specmod-0.6.0}/docs/processing.md +0 -0
  106. {specmod-0.4.0 → specmod-0.6.0}/docs/releasing.md +0 -0
  107. {specmod-0.4.0 → specmod-0.6.0}/pyproject.toml +0 -0
  108. {specmod-0.4.0 → specmod-0.6.0}/release-please-config.json +0 -0
  109. {specmod-0.4.0 → specmod-0.6.0}/requirements.txt +0 -0
  110. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/__init__.py +0 -0
  111. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/_vendor/__init__.py +0 -0
  112. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/_vendor/qiinv.py +0 -0
  113. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/api.py +0 -0
  114. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/cli.py +0 -0
  115. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/config/provenance.py +0 -0
  116. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/core/__init__.py +0 -0
  117. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/core/bandwidth.py +0 -0
  118. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/core/collection.py +0 -0
  119. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/core/noise.py +0 -0
  120. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/core/scalogram.py +0 -0
  121. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/core/spectrum.py +0 -0
  122. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/core/units.py +0 -0
  123. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/datasets.py +0 -0
  124. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/distance.py +0 -0
  125. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/exceptions.py +0 -0
  126. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/fitting/__init__.py +0 -0
  127. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/fitting/base.py +0 -0
  128. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/fitting/event.py +0 -0
  129. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/fitting/guess.py +0 -0
  130. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/io/__init__.py +0 -0
  131. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/io/backend.py +0 -0
  132. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/io/hdf5.py +0 -0
  133. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/io/layout.py +0 -0
  134. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/magnitude.py +0 -0
  135. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/picks/__init__.py +0 -0
  136. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/picks/base.py +0 -0
  137. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/picks/delimited.py +0 -0
  138. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/picks/events.py +0 -0
  139. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/picks/resolution.py +0 -0
  140. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/picks/snuffler.py +0 -0
  141. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/pipeline.py +0 -0
  142. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/plotting/__init__.py +0 -0
  143. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/plotting/grid.py +0 -0
  144. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/plotting/pair.py +0 -0
  145. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/plotting/style.py +0 -0
  146. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/preprocess.py +0 -0
  147. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/smoothing/__init__.py +0 -0
  148. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/smoothing/base.py +0 -0
  149. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/smoothing/konno_ohmachi.py +0 -0
  150. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/smoothing/log_bins.py +0 -0
  151. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/smoothing/log_window.py +0 -0
  152. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/smoothing/savitzky_golay.py +0 -0
  153. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/sources/__init__.py +0 -0
  154. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/sources/attenuation.py +0 -0
  155. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/sources/composite.py +0 -0
  156. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/sources/motion.py +0 -0
  157. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/sources/source.py +0 -0
  158. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/spreading.py +0 -0
  159. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/staged.py +0 -0
  160. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/tables.py +0 -0
  161. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/transforms/__init__.py +0 -0
  162. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/transforms/base.py +0 -0
  163. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/transforms/cwt.py +0 -0
  164. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/transforms/fft.py +0 -0
  165. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/transforms/multitaper.py +0 -0
  166. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/transforms/prieto.py +0 -0
  167. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/transforms/quadratic.py +0 -0
  168. {specmod-0.4.0 → specmod-0.6.0}/src/specmod/utils.py +0 -0
  169. {specmod-0.4.0 → specmod-0.6.0}/stubs/README.md +0 -0
  170. {specmod-0.4.0 → specmod-0.6.0}/stubs/lmfit/__init__.pyi +0 -0
  171. {specmod-0.4.0 → specmod-0.6.0}/stubs/lmfit/model.pyi +0 -0
  172. {specmod-0.4.0 → specmod-0.6.0}/stubs/lmfit/parameter.pyi +0 -0
  173. {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/__init__.pyi +0 -0
  174. {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/clients/__init__.pyi +0 -0
  175. {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/clients/fdsn/__init__.pyi +0 -0
  176. {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/__init__.pyi +0 -0
  177. {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/event.pyi +0 -0
  178. {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/inventory.pyi +0 -0
  179. {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/stream.pyi +0 -0
  180. {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/trace.pyi +0 -0
  181. {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/utcdatetime.pyi +0 -0
  182. {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/util/__init__.pyi +0 -0
  183. {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/core/util/base.pyi +0 -0
  184. {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/geodetics/__init__.pyi +0 -0
  185. {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/signal/__init__.pyi +0 -0
  186. {specmod-0.4.0 → specmod-0.6.0}/stubs/obspy/signal/konnoohmachismoothing.pyi +0 -0
  187. {specmod-0.4.0 → specmod-0.6.0}/studies/magna_2020_paper.toml +0 -0
  188. {specmod-0.4.0 → specmod-0.6.0}/tests/__init__.py +0 -0
  189. {specmod-0.4.0 → specmod-0.6.0}/tests/conftest.py +0 -0
  190. {specmod-0.4.0 → specmod-0.6.0}/tests/golden/motion_reference.json +0 -0
  191. {specmod-0.4.0 → specmod-0.6.0}/tests/golden/pipeline_reference.json +0 -0
  192. {specmod-0.4.0 → specmod-0.6.0}/tests/golden/window_reference.json +0 -0
  193. {specmod-0.4.0 → specmod-0.6.0}/tests/test_ambient_state.py +0 -0
  194. {specmod-0.4.0 → specmod-0.6.0}/tests/test_api_surface.py +0 -0
  195. {specmod-0.4.0 → specmod-0.6.0}/tests/test_collection.py +0 -0
  196. {specmod-0.4.0 → specmod-0.6.0}/tests/test_cwt.py +0 -0
  197. {specmod-0.4.0 → specmod-0.6.0}/tests/test_datasets.py +0 -0
  198. {specmod-0.4.0 → specmod-0.6.0}/tests/test_docs_are_current.py +0 -0
  199. {specmod-0.4.0 → specmod-0.6.0}/tests/test_end_to_end.py +0 -0
  200. {specmod-0.4.0 → specmod-0.6.0}/tests/test_import.py +0 -0
  201. {specmod-0.4.0 → specmod-0.6.0}/tests/test_io_and_plotting.py +0 -0
  202. {specmod-0.4.0 → specmod-0.6.0}/tests/test_legacy_fixes.py +0 -0
  203. {specmod-0.4.0 → specmod-0.6.0}/tests/test_make_golden.py +0 -0
  204. {specmod-0.4.0 → specmod-0.6.0}/tests/test_pick_plugins.py +0 -0
  205. {specmod-0.4.0 → specmod-0.6.0}/tests/test_pick_readers.py +0 -0
  206. {specmod-0.4.0 → specmod-0.6.0}/tests/test_picks.py +0 -0
  207. {specmod-0.4.0 → specmod-0.6.0}/tests/test_pipeline_smoke.py +0 -0
  208. {specmod-0.4.0 → specmod-0.6.0}/tests/test_preprocess.py +0 -0
  209. {specmod-0.4.0 → specmod-0.6.0}/tests/test_prieto.py +0 -0
  210. {specmod-0.4.0 → specmod-0.6.0}/tests/test_quadratic.py +0 -0
  211. {specmod-0.4.0 → specmod-0.6.0}/tests/test_release_config.py +0 -0
  212. {specmod-0.4.0 → specmod-0.6.0}/tests/test_smoothing.py +0 -0
  213. {specmod-0.4.0 → specmod-0.6.0}/tests/test_sources.py +0 -0
  214. {specmod-0.4.0 → specmod-0.6.0}/tests/test_spectral_wiring.py +0 -0
  215. {specmod-0.4.0 → specmod-0.6.0}/tests/test_stubs.py +0 -0
  216. {specmod-0.4.0 → specmod-0.6.0}/tests/test_tools_track_the_api.py +0 -0
  217. {specmod-0.4.0 → specmod-0.6.0}/tests/test_transforms.py +0 -0
  218. {specmod-0.4.0 → specmod-0.6.0}/tests/test_tutorial.py +0 -0
  219. {specmod-0.4.0 → specmod-0.6.0}/tests/test_typing_backlog.py +0 -0
  220. {specmod-0.4.0 → specmod-0.6.0}/tests/test_utils.py +0 -0
  221. {specmod-0.4.0 → specmod-0.6.0}/tests/test_versioning.py +0 -0
  222. {specmod-0.4.0 → specmod-0.6.0}/tools/check_built_version.py +0 -0
  223. {specmod-0.4.0 → specmod-0.6.0}/tools/check_floors.py +0 -0
  224. {specmod-0.4.0 → specmod-0.6.0}/tools/make_logo.py +0 -0
  225. {specmod-0.4.0 → specmod-0.6.0}/tools/measure_docs.py +0 -0
  226. {specmod-0.4.0 → specmod-0.6.0}/tools/vendor_fonts.py +0 -0
  227. {specmod-0.4.0 → specmod-0.6.0}/tools/vendor_katex.py +0 -0
  228. {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
  229. {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
  230. {specmod-0.4.0 → specmod-0.6.0}/tutorial/data/events/2019-08-26T07:30:47.000000Z/stations/inventory.xml +0 -0
  231. {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
  232. {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
  233. {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
  234. {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
  235. {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
  236. {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
  237. {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
  238. {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
  239. {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
  240. {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
  241. {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
  242. {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
  243. {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
  244. {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
  245. {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
  246. {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
  247. {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
  248. {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
  249. {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
  250. {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
  251. {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
  252. {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
  253. {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
  254. {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
  255. {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
  256. {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
  257. {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
  258. {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
  259. {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
  260. {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
  261. {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
  262. {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
  263. {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
  264. {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
  265. {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
  266. {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
  267. {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
  268. {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
  269. {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
  270. {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
  271. {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
  272. {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
  273. {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
  274. {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
  275. {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
  276. {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
@@ -0,0 +1,3 @@
1
+ {
2
+ ".": "0.6.0"
3
+ }
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: specmod
3
- Version: 0.4.0
3
+ Version: 0.6.0
4
4
  Summary: A Python toolbox for processing and modelling seismic spectra
5
5
  Project-URL: Homepage, https://github.com/sgjholt/SpecMod
6
6
  Project-URL: Repository, https://github.com/sgjholt/SpecMod
@@ -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
- The residual gap is narrower than the claim suggests but real: the golden file
3472
- records no config, so a *regenerated* reference silently adopts whatever
3473
- defaults were current. Pinning a study file, as this plan proposes, is what
3474
- would close it. Until then the protection is "the numbers are frozen", not
3475
- "the settings are frozen".
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. **Default estimator.** Multitaper (matching current behaviour) or FFT +
3712
- Konno–Ohmachi (more conventional in engineering seismology)? **No longer
3713
- blocked** — §6.6's dead `[smoothing] method` is wired up, so the second
3714
- option is selectable — and now measured, on the 28 PNR windows with each
3715
- station fitted freely:
3716
-
3717
- | Against the shipped multitaper + `log_bins` | Median ΔMw | Per-station range | `fc` ratio |
3718
- |---|---|---|---|
3719
- | `fft` + `log_bins` | −0.039 | −0.85 to +1.90 | 0.003 to 5.0 |
3720
- | `fft` + `konno_ohmachi` | +0.027 | −0.52 to +0.51 | 0.038 to 3.2 |
3721
-
3722
- **The smoothing is what makes the switch defensible, not the estimator.**
3723
- FFT with the shipped binner moves a station by up to 1.9 magnitude units,
3724
- because `log_bins` reduces the axis without reducing the variance — 151 log
3725
- bins over a few hundred Fourier samples is roughly one sample per bin.
3726
- Pairing it with a real smoother halves the worst excursion and pulls the
3727
- `fc` range in by a third. The median station barely moves either way.
3728
-
3729
- What this event cannot settle: the *event* corner is unconstrained under all
3730
- three (stage-one spread 895% to 1042% of the event value), so the ensemble
3731
- number is not evidence. Deciding on the ensemble needs an event where it is
3732
- constrained.
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, bins both, raises the noise to account for what sits
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 `multitaper`.
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 binned spectra the ratio is
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 unbinned signal-to-noise ratio is invariant under this — both spectra are
457
- # divided by the same 2*pi*f — but the *binned* ratio is not, because a bin
458
- # holds a geometric mean. So a few bands do move.
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 binned or unbinned
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 the next release going out without one — which is a thing that has to be
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. **There is no such section right
189
- now**, because nothing is merged and unreleased; that is the state the page
190
- should be in between releases, not a section that went missing.
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