Skip to content

Commit c182469

Browse files
committed
Merge branch 'main' into docs
2 parents f5c3cd6 + 45e0b4a commit c182469

19 files changed

+5531
-1423
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363

6464
# Install Micromamba with conda-forge dependencies
6565
- name: Setup Micromamba
66-
uses: mamba-org/setup-micromamba@v1
66+
uses: mamba-org/setup-micromamba@v2
6767
with:
6868
environment-file: env/testing_env.yml
6969
create-args: >-
@@ -83,6 +83,6 @@ jobs:
8383
pytest -ra --cov --cov-report=xml --cov-report=term --durations=20
8484
8585
- name: Upload coverage report
86-
uses: codecov/codecov-action@v4.5.0
86+
uses: codecov/codecov-action@v4.6.0
8787
env:
8888
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ repos:
3939
exclude: \.md
4040

4141
- repo: https://github.com/astral-sh/ruff-pre-commit
42-
rev: "v0.5.0"
42+
rev: "v0.6.9"
4343
hooks:
4444
- id: ruff
4545
args: ["--fix", "--show-fixes"]
@@ -48,7 +48,7 @@ repos:
4848
exclude: \.md
4949

5050
- repo: https://github.com/pre-commit/pre-commit-hooks
51-
rev: "v4.6.0"
51+
rev: "v5.0.0"
5252
hooks:
5353
- id: check-added-large-files
5454
exclude: ^(docs/examples/bishop_basement_model.ipynb|docs/tutorial/05_density_optimization.ipynb|docs/tutorial/06_reference_level_optimization.ipynb|docs/examples/uieda_et_al_2017_CRUST1.ipynb|docs/quickstart.ipynb|docs/tutorial/02_simple_inversion.ipynb|docs/tutorial/08_combining_it_all.ipynb)
@@ -80,7 +80,7 @@ repos:
8080
exclude: \.md
8181

8282
- repo: https://github.com/pre-commit/mirrors-mypy
83-
rev: "v1.10.1"
83+
rev: "v1.11.2"
8484
hooks:
8585
- id: mypy
8686
files: src|tests
@@ -116,13 +116,13 @@ repos:
116116
exclude: .pre-commit-config.yaml
117117

118118
- repo: https://github.com/abravalheri/validate-pyproject
119-
rev: "v0.18"
119+
rev: "v0.20.2"
120120
hooks:
121121
- id: validate-pyproject
122122
additional_dependencies: ["validate-pyproject-schema-store[all]"]
123123

124124
- repo: https://github.com/python-jsonschema/check-jsonschema
125-
rev: "0.29.0"
125+
rev: "0.29.3"
126126
hooks:
127127
- id: check-dependabot
128128
- id: check-github-workflows

CHANGELOG.md

Lines changed: 34 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,44 @@ Automatically updated by
44
with commit parsing of [angular commits](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#commits).
55

66
## Unreleased
7+
### 🧰 Chores / Maintenance
8+
* bump binder env to v.0.10 ([`0604561`](https://github.com/mdtanker/invert4geom/commit/060456170989616a09aa5824815194ee60061804))
9+
* update release checklist and make commands ([`8943bd0`](https://github.com/mdtanker/invert4geom/commit/8943bd04fbd076b48d379ab325e1e7969c740bf5))
10+
### 📖 Documentation
11+
* update some docs notebooks ([`6fe1488`](https://github.com/mdtanker/invert4geom/commit/6fe1488d7cda52615d7890cf11c4811b637d17fd))
12+
13+
14+
## v0.10.0 (2024-10-09)
15+
### 📦️ Build
16+
* make xesmf optional dependency ([`8f3494c`](https://github.com/mdtanker/invert4geom/commit/8f3494c66d3cb3d0999c55b56fe148fcfcc81c62))
17+
### 🧰 Chores / Maintenance
18+
* set ruff rule ([`7cdb2b0`](https://github.com/mdtanker/invert4geom/commit/7cdb2b0b6dffd3567f1277e94f1a88fd0b24562f))
19+
### 📖 Documentation
20+
* update and rerun doc notebooks ([`7285281`](https://github.com/mdtanker/invert4geom/commit/728528117ce62b3536fc20cbcaf76c23b5080406))
21+
### 🚀 Features
22+
* allow passing column name for weights in create_topography ([`1815139`](https://github.com/mdtanker/invert4geom/commit/18151399629e2b0fda306171577510250d38fee1))
23+
* add fname option to optimize functions ([`1bb69b6`](https://github.com/mdtanker/invert4geom/commit/1bb69b6044ed1c6149d7f3b083debf19d97d7040))
24+
### 🐛 Bug Fixes
25+
* minor changes ([`338306d`](https://github.com/mdtanker/invert4geom/commit/338306dd5d0f9b8349f5a93cc4585a0c65097eaa))
26+
* re-write long-wavelength contamination function, adding dependency xesmf ([`6e96870`](https://github.com/mdtanker/invert4geom/commit/6e968709a11cc28039d08695a83206f64a7c51fb))
27+
* add debug for eq source fitting ([`43e2855`](https://github.com/mdtanker/invert4geom/commit/43e28559184a38da218acf849bcbe02dae83a622))
28+
* if too few points, reduce K folds until it works for fitting Splines ([`5d40917`](https://github.com/mdtanker/invert4geom/commit/5d40917f3f0bc3e470f4c13a7ebdc1994275a490))
29+
* re-create starting topography for each fold of training constraint points in density/zref optimization ([`5da58fb`](https://github.com/mdtanker/invert4geom/commit/5da58fbcf8a091506636f19f7755853e506bfbf4))
30+
* bug for checking gravity inside topo region with density/zref cv ([`e96099a`](https://github.com/mdtanker/invert4geom/commit/e96099a3b18e44a34885e852cabef9054209ee47))
31+
### ✏️ Formatting
32+
* pre-commit fixes ([`7802143`](https://github.com/mdtanker/invert4geom/commit/7802143f8bea1ee0101540b5ee88f21011b937ff))
33+
* pre-commit fixes ([`28687c5`](https://github.com/mdtanker/invert4geom/commit/28687c597d4c956ac4adabf691084061c13313e8))
34+
35+
## v0.9.1 (2024-10-03)
736
### 📦️ Build
837
* add pooch and scikit-learn as dependencies ([`8bebf45`](https://github.com/mdtanker/invert4geom/commit/8bebf4545ad816fddc25d59d91dcc578019c86ca))
938
### 🧰 Chores / Maintenance
1039
* update binder env to `v0.9` ([`0307bd9`](https://github.com/mdtanker/invert4geom/commit/0307bd9f38c5f20d83eeab8e73c9e5dd0b1f5f4e))
11-
40+
### 📖 Documentation
41+
* update and rerun docs ([`1d39529`](https://github.com/mdtanker/invert4geom/commit/1d39529ee0b9bbf11eea7e32a87e2a710b1fa887))
42+
### 🐛 Bug Fixes
43+
* fixes error of using 1x not 4.5x default depth for eq sources ([`5746851`](https://github.com/mdtanker/invert4geom/commit/57468519286d34691f06855e9d278f8ee2a598d0))
44+
* enable `default` eq source depth for regional constraints ([`d9301a3`](https://github.com/mdtanker/invert4geom/commit/d9301a3394e4a54b171a245d8bd0af7821c11c98))
1245

1346
## v0.9.0 (2024-08-10)
1447
### 📦️ Build

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ create:
1313
install:
1414
pip install -e .[all]
1515

16-
install_test:
17-
pip install $(PROJECT)[all]
18-
1916
remove:
2017
mamba remove --name $(PROJECT) --all
2118

19+
pip_install:
20+
pip install $(PROJECT)[all]
21+
2222
conda_install:
23-
mamba create --name $(PROJECT) --yes --force --channel conda-forge $(PROJECT) pytest pytest-cov
23+
mamba create --name $(PROJECT) --yes --force --channel conda-forge $(PROJECT) pytest pytest-cov ipykernel
2424

2525
####
2626
####

binder/environment.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ channels:
33
- conda-forge
44
dependencies:
55
- python==3.11
6-
- geopandas==0.14
76
- pip
87
- pip:
9-
- invert4geom==0.9
8+
- invert4geom==0.10

docs/contributing.md

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,13 +399,21 @@ Now, when submitting a PR, `RTD` will automatically build the docs and update th
399399

400400
## Release Checklist
401401
* re-run any relevant notebooks
402-
* add any new dependencies to the binder env
403402
* check docs are building correctly using the GitHub actions link within the PR
404403
* merge the PR
405404
* wait for `PyPI` to publish the new version [here](https://pypi.python.org/pypi/invert4geom)
406405
* wait for a PR to be opened in the [feedstock](https://github.com/conda-forge/invert4geom-feedstock)
407406
* update any changed dependencies in the feedstock PR and merge
408407
* wait for `conda` to publish the new version [here](https://anaconda.org/conda-forge/invert4geom)
409408
* update invert4geom version in `binder/environment.yml`.
410-
* test `PyPI` version with `make install_test` and `make test`
411-
* test `conda` version with `make conda_install` and `make test`
409+
* test `PyPI` version with:
410+
- `make remove`
411+
- `make create`
412+
- `mamba activate invert4geom`
413+
- `make pip_install`
414+
- `make test`
415+
* test `conda` version with:
416+
- `make remove`
417+
- `make conda_install`
418+
- `mamba activate invert4geom`
419+
- `make test`

0 commit comments

Comments
 (0)