-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding regional and optimization modules (#30)
* docs: fix some docstrings * feat: add best_spline_cv function * feat: add eq_sources_score function * feat: add synthetic regional field function * feat: add optimization module * feat: add regional module * docs: add module descriptions to overview * docs: add testing instructions to contrib guide * build: add new dependencies * feat: add test files for all modules * docs: add estimating regional field user guide * fix: typos and formatting * fix: replace psutil cpu affinity with new function used a function from a stack overlow answer which is able to get cpu core numbers for many operating systems since psutil doesn't seem to work for MacOS or Windows. * build: alter dependency versions * fix: use lock_obj to fix file store for windows * chore: add sphinx-apidoc call to ci.yml * docs: add rst files for new modules * chore: remove build api docs to ci.yml * chore: seperate RTD env and testing env * chore: fix env.yml files * chore: move changelog template location * docs: customize jinja changelog template * build: add optimization optional deps * build: combine optional dependencies into `all` * build: restrict xrft version Seems to be cause issues in conda-forge feedstock, harmonica requires >= 1.0, match this * chore: numba-progress install from pip to conda * docs: replace `Unknown` with `Other` in changelog * chore: add Make changelog command * fix: make optimization dep imports optional * fix: optional optuna Journal import
- Loading branch information
Showing
29 changed files
with
2,509 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -107,7 +107,7 @@ celerybeat.pid | |
# Environments | ||
.env | ||
.venv | ||
env/ | ||
# env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,4 @@ sphinx: | |
configuration: docs/conf.py | ||
|
||
conda: | ||
environment: environment.yml | ||
environment: env/RTD_env.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
invert4geom.optimization | ||
------------------------ | ||
.. automodule:: invert4geom.optimization | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
invert4geom.regional | ||
-------------------- | ||
.. automodule:: invert4geom.regional | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Requirements for running the github action: test only need run-time dependencies | ||
name: invert4geom | ||
channels: | ||
- conda-forge | ||
- defaults | ||
dependencies: | ||
- python>=3.8 | ||
- pip | ||
# Run-time | ||
- numpy | ||
- pandas | ||
- xarray | ||
- verde>=1.8.0 | ||
- rioxarray | ||
- pykdtree | ||
- xrft>=1.0 | ||
- harmonica>=0.6.0 | ||
- antarctic-plots>=0.0.6 | ||
- numba | ||
- scipy | ||
- nptyping | ||
- numba-progress | ||
- tqdm | ||
- pygmt | ||
- dask | ||
# opti | ||
- optuna>=3.1.0 | ||
- botorch>=0.4.0 | ||
- psutil | ||
- joblib | ||
# docs | ||
- sphinx>=4.0 | ||
- myst-parser | ||
- sphinx-copybutton | ||
- sphinx-autodoc-typehints | ||
- sphinx-book-theme>=0.3 | ||
- sphinx-design | ||
- nbsphinx | ||
- pip: | ||
- tqdm_joblib | ||
- ../. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.