Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 clean state #64

Open
wants to merge 73 commits into
base: v2
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
73c6fc7
Modernize the build system using `pyproject.toml`
claudiodsf Sep 24, 2024
9a18e89
Temporarily rename project to sourcespec2
claudiodsf Jul 2, 2024
d5d78cc
Replace absolute imports with relative imports
claudiodsf Jul 3, 2024
cb6647f
Move all config-related files to a "config" directory
claudiodsf Jul 3, 2024
1463ab2
Move library version check to its own module
claudiodsf Jul 3, 2024
67fef92
Move `configure()` to config.py
claudiodsf Jul 3, 2024
81ee077
Make it possible to call configure() without any arguments
claudiodsf Jul 4, 2024
8da0db4
Export a global config object
claudiodsf Jul 4, 2024
f213df8
Move validation and deprecation checks to the Config class
claudiodsf Jul 8, 2024
32bb403
Rename `configure()` to `configure_cli()`
claudiodsf Jul 9, 2024
4a33674
Use the global `config` object in ssp_setup.py and ssp_read_traces.py
claudiodsf Jul 9, 2024
100f72e
Use the global `config` object in ssp_read_event_metadata.py and ssp_…
claudiodsf Jul 10, 2024
6f3fa52
Use the global `config` object in ssp_process_traces.py.
claudiodsf Jul 9, 2024
0c2de67
Use the global `config` object in ssp_wave_arrival.py
claudiodsf Jul 9, 2024
fd8408e
Use the global `config` object in ssp_build_spectra.py, ssp_correctio…
claudiodsf Jul 9, 2024
ef62e07
Use the global `config` object in ssp_plot_traces.py
claudiodsf Jul 9, 2024
cc8720d
Use the global `config` object in ssp_inversion.py, ssp_grid_sampling…
claudiodsf Jul 9, 2024
f2cebc9
Use the global `config` object in ssp_radiated_energy.py
claudiodsf Jul 9, 2024
644d275
Use the global `config` object in ssp_local_magnitude.py
claudiodsf Jul 9, 2024
d950d50
Use the global `config` object in ssp_summary_statistics.py
claudiodsf Jul 9, 2024
fc86bef
Use the global `config` object in ssp_output.py, ssp_qml_output.py, a…
claudiodsf Jul 9, 2024
8367bf3
Use the global `config` object in ssp_residuals.py
claudiodsf Jul 10, 2024
840309a
Use the global `config` object in ssp_plot_spectra.py
claudiodsf Jul 10, 2024
f8612b2
Use the global `config` object in ssp_plot_stacked_spectra.py
claudiodsf Jul 10, 2024
7d0fd3d
Use the global `config` object in ssp_plot_params_stats.py
claudiodsf Jul 10, 2024
fc07b44
Use the global `config` object in ssp_plot_stations.py
claudiodsf Jul 10, 2024
652e367
Use the global `config` object in ssp_html_report.py
claudiodsf Jul 10, 2024
61f2429
Use the global `config` object in ssp_read_station_metadata.py
claudiodsf Jul 10, 2024
56c3397
Use the global `config` object in ssp_util.py
claudiodsf Jul 10, 2024
fb3dabe
Use the global `config` object in ssp_geom_spreading.py
claudiodsf Jan 9, 2025
463f580
Moved code from move_outdir function to new get_outdir_path function.
krisvanneste Jul 10, 2024
0bf963d
Removed arguments from _read_trace_files function, and moved code to …
krisvanneste Jul 10, 2024
34d2388
Moved code from main function to new ssp_run and ssp_output functions.
krisvanneste Jul 10, 2024
1bbed22
Explicitly pass `eventid` to setup functions
claudiodsf Jul 15, 2024
c2ba635
Add TRACEID_MAP to config object. Take care of 'None' values in lists.
claudiodsf Jul 15, 2024
7a1f8b5
Make `select_components()` an in-place operation
claudiodsf Jul 15, 2024
cefd44a
Rename `config` module to `setup`. Split `ssp_setup.py` into separate…
claudiodsf Jul 15, 2024
019c38e
Move input functions into `input` submodule
claudiodsf Jul 16, 2024
7a7e63c
Split event parsers into separate files, depending on format
claudiodsf Jul 16, 2024
f89f677
Fix regression on reading station metadata from SAC headers
claudiodsf Jul 17, 2024
9a5ee16
Fix regression in reading event information from SAC header
claudiodsf Jul 17, 2024
68ba739
Added parse_asdf_inventory function.
krisvanneste Jul 17, 2024
1b3f7d4
Added parse_asdf_traces function.
krisvanneste Jul 17, 2024
0c44c06
Command line option to parse ASDF file for event and picks information
claudiodsf Jul 19, 2024
b1cf6e1
Make parse_qml_event_picks() behave like parse_asdf_event_picks()
claudiodsf Jul 19, 2024
d7d8d46
Move asdf trace parsing to a separate module
claudiodsf Jul 19, 2024
b39917c
Command line argument to specify tag when reading traces from ASDF file
claudiodsf Jul 19, 2024
0ac4b15
Log number of traces loaded and whether traces are read from ASDF file
claudiodsf Jul 19, 2024
c8e8160
Move asdf inventory parsing to a separate module
claudiodsf Jul 19, 2024
f7ca629
Move PAZ reader to its own module
claudiodsf Jul 19, 2024
058d557
Fix `_make_symlinks` to handle the case where `config.options.trace_p…
claudiodsf Jul 22, 2024
925caf0
Use `getattr()` when dealing with `config.options`
claudiodsf Jul 22, 2024
005b06c
Warn the user about prioritary sources when reading event and picks
claudiodsf Jul 22, 2024
5ea1f8a
asdf_event, quakeml: return empty event and picks if an exception is …
claudiodsf Jul 22, 2024
dd5a226
Make reading event and picks from SAC trace headers the least priorit…
claudiodsf Jul 22, 2024
2091b99
Issue SAC header warnings only if no event or pick information was found
claudiodsf Jul 22, 2024
6cfe38a
Make it possible to read event, picks, traces and metadata from multi…
claudiodsf Jul 22, 2024
f90cc3f
`_Config()` class: use the term "paramter" instead of "option"
claudiodsf Jul 22, 2024
13cea57
Custom `_Options` class, with builtin checks for API users.
claudiodsf Jul 22, 2024
dd78cd6
Move `sac_header.py` to `station_metadata_parsers/sac_station_metadat…
claudiodsf Jul 23, 2024
c820df2
Move instrument metadata parsing from SAC header to `read_traces` and…
claudiodsf Jul 23, 2024
b773bcf
Make `_Options` a subclass of `dict`. Clear `_Options` when clearing …
claudiodsf Jul 23, 2024
d53f323
Move trace selection from config to traces.py
claudiodsf Jul 23, 2024
c3302be
ssp_exit: error messages and raise exception
claudiodsf Jul 23, 2024
1a8c991
Manage more cases of missing options in config
claudiodsf Jul 24, 2024
600af3e
Allowed 'tag' argument of parse_asdf_traces function to contain wildc…
krisvanneste Jul 24, 2024
9bff212
Added support for separate tags for each ASDF file in _read_asdf_trac…
krisvanneste Jul 24, 2024
7305030
Small cosmetic changes in asdf parsing
claudiodsf Jul 24, 2024
203c86a
Update docstrings in asdf_traces.py for consistency
claudiodsf Jul 24, 2024
714e088
Remove unused import in event_and_picks.py
claudiodsf Oct 23, 2024
cd83411
Better logging for when no event or pick information is found
claudiodsf Oct 23, 2024
029158b
Update copyright year to 2025
claudiodsf Jan 8, 2025
c6e9218
Added ssp_clear_state function.
krisvanneste Jan 10, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ docs/generated
.vscode

#Build products
sourcespec.egg-info/
*.egg-info/
dist/
build/
RELEASE-VERSION
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include CHANGELOG.md
include README.md
exclude README_pkg.md
include LICENSE.txt
include CONTRIBUTORS.txt
# include only files in docs, not subdirs like _build
Expand Down
26 changes: 13 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ requires = ["setuptools>=64", "versioneer[toml]"]
build-backend = "setuptools.build_meta"

[project]
name = "sourcespec"
name = "sourcespec2"
dynamic = ["version", "readme"]
authors = [
{ name = "Claudio Satriano", email = "[email protected]" },
Expand Down Expand Up @@ -48,11 +48,11 @@ Source = "https://github.com/SeismicSource/sourcespec"
Documentation = "https://sourcespec.readthedocs.io"

[project.scripts]
source_spec = "sourcespec.source_spec:main"
source_model = "sourcespec.source_model:main"
source_residuals = "sourcespec.source_residuals:main"
clipping_detection = "sourcespec.clipping_detection:main"
plot_sourcepars = "sourcespec.plot_sourcepars:main"
source_spec2 = "sourcespec2.source_spec:main"
source_model2 = "sourcespec2.source_model:main"
source_residuals2 = "sourcespec2.source_residuals:main"
clipping_detection2 = "sourcespec2.clipping_detection:main"
plot_sourcepars2 = "sourcespec2.plot_sourcepars:main"

[tool.setuptools]
include-package-data = true
Expand All @@ -62,23 +62,23 @@ platforms = [
]

[tool.setuptools.packages.find]
include = ["sourcespec", "sourcespec.*"]
include = ["sourcespec2", "sourcespec2.*"]

[tool.setuptools.package-data]
"*" = ["LICENSE"]
"sourcespec.config_files" = ["*.yaml", "*.conf"]
"sourcespec.html_report_template" = ["*.html", "*.css"]
"sourcespec2.setup" = ["*.yaml", "*.conf"]
"sourcespec2.html_report_template" = ["*.html", "*.css"]

[tool.setuptools.dynamic]
version = {attr = "sourcespec.__version__"}
version = {attr = "sourcespec2.__version__"}

[tool.versioneer]
VCS = "git"
style = "pep440"
versionfile_source = "sourcespec/_version.py"
versionfile_build = "sourcespec/_version.py"
versionfile_source = "sourcespec2/_version.py"
versionfile_build = "sourcespec2/_version.py"
tag_prefix = "v"
parentdir_prefix = "sourcespec-"
parentdir_prefix = "sourcespec2-"

[tool.pylama]
skip = "build/*,versioneer.py,*/_version.py,*/configobj/*,*/adjustText/*"
29 changes: 0 additions & 29 deletions sourcespec/config.py

This file was deleted.

105 changes: 0 additions & 105 deletions sourcespec/source_spec.py

This file was deleted.

Loading