Repository navigation
GEOPY-3115: Update SimPEG to 0.26 #176
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
Merged
Merged
Changes from all commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
a5b2fdb
Fix bug in IP effects on EM1D simulations (#1729)
GrindingTheophile 9703e1f
Hide `BreakingChangeWarning` from `get_indices_block` (#1746)
santisoler 471344c
Fix bug in VRM effects on EM1D simulations (#1748)
santisoler 6cc4cdc
Fix for issue #1712 (#1738)
TomSHudsonFST 66a91d5
Improve docs of `Survey.drape_electrodes_on_topography` (#1749)
santisoler 76b05e6
Minor improvements to the release checklist (#1753)
santisoler 8065b77
Add changelog for SimPEG v0.25.1 (#1752)
santisoler b85ca75
Update link to PyPI in release checklist (#1755)
santisoler fcb9bdf
NSEM receivers for 2D simulation (#1684)
dccowan 983f2b4
Add patches to support Numpy 2.4 (#1759)
santisoler d567807
Replace LaTeX `align` for `aligned` in math directives (#1758)
santisoler 8e70c39
Improve type hints in `distance_weighting` (#1756)
santisoler ba60041
Cherry-pick changelog for v0.25.2 (#1762)
santisoler 49cd654
Improved right-hand side for NSEM primary secondary (#1661)
dccowan 3c268dd
Remove unused functions in NSEM source utils (#1763)
santisoler 43b0120
TileMap --> use the discretize volume averaging (#1770)
lheagy 92d8ca8
Add allow-unsafe-pr-checkout: true (#1773)
jcapriot 5df6af1
Fix line feeds in natural_source/simulation.py to be LF instead (#1772)
jcapriot 3500838
Fix math definition of RHS in FDEM simulations (#1774)
RylanDS7 53d0493
Nsem recursive add zyx (#1766)
dccowan 41727cb
Stable padding for 1D MT solutions (#1769)
dccowan e203ecf
Make `simpeg.utils.download` respect the `verbose` argument (#1777)
manduinca 33949ef
Remove non-existing function from API reference (#1784)
santisoler 4852670
Move Contributing guide to its own section (#1781)
santisoler 40cda0b
Minor fixes to Contributing guide (#1782)
santisoler bec48a0
Fix some `numpydocstyle` issues (#1785)
santisoler 5c27536
Update URL to `pymatsolver` for `intersphinx` (#1783)
santisoler dc1bbb5
Make `sphinx-gallery` configuration pickable (#1786)
santisoler 0a002be
Use dependabot to check for updates in GitHub Actions (#1789)
santisoler 390d5f5
Remove Action that runs `reviewdog` in PRs (#1795)
santisoler 8f581b3
Bump actions/checkout from 4 to 7 (#1791)
dependabot[bot] 06f5a79
Bump actions/setup-python from 5 to 7 (#1790)
dependabot[bot] 1e3c1b0
Drop support for Python 3.11 (#1802)
santisoler 5fdcfe1
Add Actions workflow to test against latest dependencies (#1807)
santisoler d485866
Run Ruff to check some `pydocstyle` errors (#1788)
santisoler 5b53e8c
Bump black from 24.3.0 to 26.3.1 (#1809)
dependabot[bot] 0889ecf
Extend Black target-version up to py314 (#1810)
santisoler 3bf555e
Remove the `warn` argument in `get_default_solver` (#1797)
santisoler e003cd6
Bump conda-incubator/setup-miniconda from 4.0.1 to 4.1.0 (#1811)
dependabot[bot] b547a38
Removed deprecated directives submodules (#1798)
santisoler bb9067d
Remove deprecated properties of optimizers (#1799)
santisoler 309b7ea
Replace the deprecated `typing.Type` for `type` (#1801)
santisoler e998b79
Remove deprecated properties from directives (#1800)
santisoler 705a33c
Fix Maxwell equation in FDEM module description (#1778)
santisoler 58efca6
Bump Python version to 3.14 in `environment.yml` (#1813)
santisoler eda21e6
Add page on deprecating code to Contributing Guide (#1808)
santisoler fbd2949
Enhance robustness and error handling in multiprocessing simulations …
jcapriot 7d721d0
Make multiprocessing potential field kernel build using shared memory…
jcapriot d872a94
Replace deprecated refine_tree_xyz across tests (#1466)
santisoler 7aeab4e
Replace `refine_tree_xyz` in latest magnetic tests (#1819)
santisoler 165325f
Add rotation invariant transfer functions (#1779)
dccowan 7036b93
Replace `refine_tree_xyz` in examples (#1820)
santisoler ea42825
Fix bug in `getJ` method of FDEM simulations (#1822)
lheagy 89ce061
Minor updates to the release checklist (#1828)
santisoler cf41688
EMsimulation face and edge conductivities (#1296)
dccowan b1c6e60
Fix line current inconsistency between EB and HJ formulations (#1812)
lheagy 1addf2f
Replace deprecated `discretize.utils.closest_points_index` (#1827)
santisoler 4463171
Optimize `deriv` method in parametric maps (#1754)
santisoler 3f0c7f9
Better map shapes (#1787)
jcapriot 498a000
Fix NSEM TreeMesh side columns, scalar `sigma_primary`, FDEM multi-so…
jcapriot 802286d
Store TDEM factorizations (#1832)
jcapriot 1b5245b
Bump Python to 3.15 in test against latest versions (#1833)
santisoler 137a372
Add changelog for SimPEG v0.26.0 (#1826)
santisoler 40e5f54
Merge branch 'main' into GEOPY-3115
domfournier ed32615
Re-apply einsum to tipper receivers deriv
domfournier 6bb069a
Bring back older nester TileMap until fully tested
domfournier 1f7d28d
Add TileMapNested to init. Fix imports
domfournier cef6858
Deal with sparse v vector
domfournier ff5dd61
Change array multiplications
domfournier 03db53f
Fix tipper derivs
domfournier e94151f
Bring back wires from projections
domfournier 5f396d7
Convert cross_product_amplitude_deriv to einsum operations
domfournier 22654d3
Fix shape
domfournier 26ee051
Remove old ignore
domfournier ae28eb6
Fix bad ratio
domfournier 5f52c7b
Clean up merge conflict
domfournier 94dc468
Merge branch 'develop' into GEOPY-3115
domfournier File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1 +1,3 @@ | ||
| * text=auto | ||
|
|
||
| .git_archival.txt export-subst |
This file contains hidden or 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 hidden or 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 |
|---|---|---|
|
|
@@ -30,4 +30,4 @@ updates: | |
| groups: | ||
| pre-commit-hooks: | ||
| patterns: | ||
| - "*" | ||
| - "*" | ||
This file contains hidden or 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 hidden or 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,96 @@ | ||
| # Test SimPEG against latest Python and dependencies versions | ||
| # =========================================================== | ||
|
|
||
| name: Test SimPEG against latest Python | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| # Manually triggered event. Allow to select Python version in the web interface. | ||
| inputs: | ||
| python: | ||
| description: "Python version" | ||
| required: true | ||
| default: "3.15" | ||
| type: string | ||
|
|
||
| schedule: | ||
| # Run at midnight of every Monday on default branch | ||
| - cron: "0 0 * * 1" | ||
| timezone: "UTC" | ||
|
|
||
| permissions: {} | ||
|
|
||
| # Use bash by default in all jobs | ||
| defaults: | ||
| run: | ||
| # The -l {0} is necessary for conda environments to be activated | ||
| # But this breaks on MacOS if using actions/setup-python: | ||
| # https://github.com/actions/setup-python/issues/132 | ||
| # -e makes sure builds fail if any command fails | ||
| shell: bash -e -o pipefail -l {0} | ||
|
|
||
| jobs: | ||
|
|
||
| test: | ||
| name: Test (latest) | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| # Allow single workshops in the matrix to fail and continue running the rest. | ||
| fail-fast: false | ||
| matrix: | ||
| test_target: | ||
| - tests/base tests/flow tests/meta tests/utils | ||
| - tests/em | ||
| - tests/examples | ||
| - tests/pf | ||
| # Test dask on its own to avoid modifying the implementation of any other tests | ||
| - tests/dask | ||
| env: | ||
| # Define the Python version conditionally: | ||
| # if it was manually triggered, use the inputs.python variable, else use a default value. | ||
| PYTHON: ${{ inputs.python || '3.15' }} | ||
| ENVIRONMENT: .ci/environment_test.yml | ||
|
|
||
| steps: | ||
| # Checks-out your repository under $GITHUB_WORKSPACE | ||
| - name: Checkout | ||
| uses: actions/checkout@v7 | ||
| with: | ||
| # Need to fetch more than the last commit so that setuptools-scm can | ||
| # create the correct version string. If the number of commits since | ||
| # the last release is greater than this, the version still be wrong. | ||
| # Increase if necessary. | ||
| fetch-depth: 100 | ||
| # The GitHub token is preserved by default but this job doesn't need | ||
| # to be able to push to GitHub. | ||
| persist-credentials: false | ||
|
|
||
| # Need the tags so that setuptools-scm can form a valid version number | ||
| - name: Fetch git tags | ||
| run: git fetch origin 'refs/tags/*:refs/tags/*' | ||
|
|
||
| - name: Setup caching for conda packages | ||
| uses: actions/cache@v6 | ||
| with: | ||
| path: ~/conda_pkgs_dir | ||
| key: conda-${{ env.PYTHON }}-${{ hashFiles(env.ENVIRONMENT) }} | ||
|
|
||
| - name: Setup Miniforge | ||
| uses: conda-incubator/setup-miniconda@be893c923ea9cf1cf7cd510fbdde27c7e18cbdcb | ||
| with: | ||
| python-version: ${{ env.PYTHON }} | ||
| miniforge-version: latest | ||
| channels: conda-forge | ||
| conda-remove-defaults: "true" | ||
| activate-environment: simpeg-test | ||
| environment-file: ${{ env.ENVIRONMENT }} | ||
|
|
||
| - name: List installed packages | ||
| run: conda list | ||
|
|
||
| - name: Install the package | ||
| run: python -m pip install --no-deps . | ||
|
|
||
| - name: Run tests | ||
| run: | | ||
| pytest -v --cov --cov-config="pyproject.toml" -W "ignore::DeprecationWarning" ${{ matrix.test_target }} | ||
This file contains hidden or 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 |
|---|---|---|
| @@ -1,39 +1,22 @@ | ||
| default_language_version: | ||
| python: python3 | ||
| default_stages: [pre-commit,pre-push] | ||
| fail_fast: false | ||
|
|
||
| repos: | ||
| - repo: https://github.com/psf/black-pre-commit-mirror | ||
| rev: 25.1.0 | ||
| rev: 26.3.1 | ||
| hooks: | ||
| - id: black | ||
| language_version: python3.12 | ||
|
|
||
| language_version: python3 | ||
| - repo: https://github.com/pycqa/flake8 | ||
| rev: 7.1.2 | ||
| rev: 7.0.0 | ||
| hooks: | ||
| - id: flake8 | ||
| language_version: python3.12 | ||
| language_version: python3 | ||
| additional_dependencies: | ||
| - flake8-bugbear==23.12.2 | ||
| - flake8-builtins==2.2.0 | ||
| - flake8-mutable==1.2.0 | ||
| - flake8-rst-docstrings==0.3.0 | ||
| - flake8-docstrings==1.7.0 | ||
| - flake8-pyproject==1.2.3 | ||
| - repo: https://github.com/MiraGeoscience/pre-commit-hooks | ||
| rev: v1.1.0 | ||
| - repo: https://github.com/astral-sh/ruff-pre-commit | ||
| rev: v0.16.6 | ||
| hooks: | ||
| - id: prepare-commit-msg | ||
| - id: check-commit-msg | ||
| - repo: https://github.com/pre-commit/pre-commit-hooks | ||
| rev: v5.0.0 | ||
| hooks: | ||
| - id: check-json | ||
| exclude_types: [jupyter] | ||
| - id: check-toml | ||
| - id: check-yaml | ||
| - id: check-added-large-files | ||
| - id: check-merge-conflict | ||
| - id: detect-private-key | ||
| - id: ruff-check |
This file contains hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.