-
Notifications
You must be signed in to change notification settings - Fork 0
Fix realisation plots #108
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,7 +8,41 @@ authors = [{ name = "QuakeCoRE" }] | |||||||||||||||||||||||||||||||
| description = "Visualisation repository for plotting scripts." | ||||||||||||||||||||||||||||||||
| readme = "README.md" | ||||||||||||||||||||||||||||||||
| requires-python = ">=3.12" | ||||||||||||||||||||||||||||||||
| dynamic = ["version", "dependencies"] | ||||||||||||||||||||||||||||||||
| dynamic = ["version"] | ||||||||||||||||||||||||||||||||
| dependencies = [ | ||||||||||||||||||||||||||||||||
| "cartopy", | ||||||||||||||||||||||||||||||||
| "matplotlib", | ||||||||||||||||||||||||||||||||
| "numpy", | ||||||||||||||||||||||||||||||||
| "ffmpeg-python", | ||||||||||||||||||||||||||||||||
| "pygmt", | ||||||||||||||||||||||||||||||||
| "pygmt-helper>=2025.12.1", | ||||||||||||||||||||||||||||||||
| "source-modelling>=2025.12.1", | ||||||||||||||||||||||||||||||||
| "workflow @ git+https://github.com/ucgmsim/workflow.git@pegasus", | ||||||||||||||||||||||||||||||||
| "qcore-utils>=2025.12.2", | ||||||||||||||||||||||||||||||||
| "geopandas", | ||||||||||||||||||||||||||||||||
| "pandas", | ||||||||||||||||||||||||||||||||
| "shapely", | ||||||||||||||||||||||||||||||||
| "scipy >= 1.15.0", | ||||||||||||||||||||||||||||||||
| "pooch", | ||||||||||||||||||||||||||||||||
| "typer", | ||||||||||||||||||||||||||||||||
| "tqdm", | ||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| [project.optional-dependencies] | ||||||||||||||||||||||||||||||||
| test = [ | ||||||||||||||||||||||||||||||||
| "diffimg", | ||||||||||||||||||||||||||||||||
| "pytest", | ||||||||||||||||||||||||||||||||
| "pytest-cov", | ||||||||||||||||||||||||||||||||
| "hypothesis[pandas, numpy]", | ||||||||||||||||||||||||||||||||
| "hypothesis-networkx", | ||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||
|
Comment on lines
+33
to
+39
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The
Suggested change
|
||||||||||||||||||||||||||||||||
| types = ["types-geopandas", "types-shapely", "scipy-stubs", "pandas-stubs"] | ||||||||||||||||||||||||||||||||
| dev = ["ty", "ruff", "deptry"] | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| [tool.deptry] | ||||||||||||||||||||||||||||||||
| pep621_dev_dependency_groups = ["test", "dev", "types"] | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| [project.scripts] | ||||||||||||||||||||||||||||||||
|
|
@@ -25,13 +59,11 @@ plot-1d-velocity-model = "visualisation.plot_1d_velocity_model:app" | |||||||||||||||||||||||||||||||
| plot-rupture-path = "visualisation.plot_rupture_path:app" | ||||||||||||||||||||||||||||||||
| plot-stoch = "visualisation.sources.plot_stoch:app" | ||||||||||||||||||||||||||||||||
| plot-ts = "visualisation.plot_ts:app" | ||||||||||||||||||||||||||||||||
| plot-realisation = "visualisation.realisation:app" | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| [tool.setuptools.package-dir] | ||||||||||||||||||||||||||||||||
| visualisation = "visualisation" | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| [tool.setuptools.dynamic] | ||||||||||||||||||||||||||||||||
| dependencies = { file = ["requirements.txt"] } | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| [tool.ruff.lint] | ||||||||||||||||||||||||||||||||
| extend-select = [ | ||||||||||||||||||||||||||||||||
| # isort imports | ||||||||||||||||||||||||||||||||
|
|
@@ -53,7 +85,7 @@ extend-select = [ | |||||||||||||||||||||||||||||||
| # Missing function argument type-annotation | ||||||||||||||||||||||||||||||||
| "ANN001", | ||||||||||||||||||||||||||||||||
| # Using except without specifying an exception type to catch | ||||||||||||||||||||||||||||||||
| "BLE001" | ||||||||||||||||||||||||||||||||
| "BLE001", | ||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||
| ignore = ["D104"] | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
|
|
@@ -62,15 +94,15 @@ convention = "numpy" | |||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| [tool.ruff.lint.isort] | ||||||||||||||||||||||||||||||||
| known-first-party = [ | ||||||||||||||||||||||||||||||||
| "source_modelling", | ||||||||||||||||||||||||||||||||
| "visualisation", | ||||||||||||||||||||||||||||||||
| "workflow", | ||||||||||||||||||||||||||||||||
| "pygmt_helper", | ||||||||||||||||||||||||||||||||
| "qcore", | ||||||||||||||||||||||||||||||||
| "empirical", | ||||||||||||||||||||||||||||||||
| "nshmdb", | ||||||||||||||||||||||||||||||||
| "IM_calculation", | ||||||||||||||||||||||||||||||||
| "mera" | ||||||||||||||||||||||||||||||||
| "source_modelling", | ||||||||||||||||||||||||||||||||
| "visualisation", | ||||||||||||||||||||||||||||||||
| "workflow", | ||||||||||||||||||||||||||||||||
| "pygmt_helper", | ||||||||||||||||||||||||||||||||
| "qcore", | ||||||||||||||||||||||||||||||||
| "empirical", | ||||||||||||||||||||||||||||||||
| "nshmdb", | ||||||||||||||||||||||||||||||||
| "IM_calculation", | ||||||||||||||||||||||||||||||||
| "mera", | ||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| [tool.ruff.lint.per-file-ignores] | ||||||||||||||||||||||||||||||||
|
|
@@ -80,9 +112,7 @@ known-first-party = [ | |||||||||||||||||||||||||||||||
| "tests/**.py" = ["D"] | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| [tool.coverage.run] | ||||||||||||||||||||||||||||||||
| omit = [ | ||||||||||||||||||||||||||||||||
| "visualisation/plot_ts.py" | ||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||
| omit = ["visualisation/plot_ts.py"] | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| [tool.numpydoc_validation] | ||||||||||||||||||||||||||||||||
| checks = [ | ||||||||||||||||||||||||||||||||
|
|
@@ -103,7 +133,7 @@ checks = [ | |||||||||||||||||||||||||||||||
| "YD01", | ||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||
| # remember to use single quotes for regex in TOML | ||||||||||||||||||||||||||||||||
| exclude = [ # don't report on objects that match any of these regex | ||||||||||||||||||||||||||||||||
| '\.undocumented_method$', | ||||||||||||||||||||||||||||||||
| '\.__repr__$', | ||||||||||||||||||||||||||||||||
| exclude = [ # don't report on objects that match any of these regex | ||||||||||||||||||||||||||||||||
| '\.undocumented_method$', | ||||||||||||||||||||||||||||||||
| '\.__repr__$', | ||||||||||||||||||||||||||||||||
| ] | ||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,20 +0,0 @@ | ||
| diffimg | ||
| cartopy | ||
| matplotlib | ||
| numpy | ||
| ffmpeg-python | ||
| pygmt | ||
| pygmt_helper @ git+https://github.com/ucgmsim/pygmt_helper.git | ||
| source_modelling @ git+https://github.com/ucgmsim/source_modelling.git | ||
| workflow @ git+https://github.com/ucgmsim/workflow.git@pegasus | ||
| qcore @ git+https://github.com/ucgmsim/qcore.git | ||
| geopandas | ||
| pandas | ||
| shapely | ||
| scipy >= 1.15.0 | ||
| pooch | ||
| pytest | ||
| pytest-cov | ||
| pytest-xdist | ||
| typer | ||
| tqdm | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For better maintainability and to avoid potential merge conflicts, it's a good practice to keep the main dependency list sorted alphabetically.