Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 commits
Select commit Hold shift + click to select a range
cb365ec
define the kernels of the linear function on nodes rather than at cel…
lheagy Jan 24, 2024
5782d4e
remove test checking entries of the kernels
lheagy Jan 28, 2024
8bfb0dd
Set function's parent on init. Augment unitests
domfournier Jan 28, 2024
2bd131b
Use future import
domfournier Jan 28, 2024
5eaa5a5
Merge branch 'main' into ISSUE-1341
domfournier Jan 29, 2024
0e8a7e6
ravel
thibaut-kobold Jan 29, 2024
9ebab83
Move assignement in the validation
domfournier Jan 29, 2024
05698fb
Black flake8 fix
domfournier Jan 29, 2024
093579e
Merge branch 'ISSUE-1341' of https://github.com/SimPEG/simpeg into IS…
domfournier Jan 29, 2024
aa7c329
Merge pull request #1343 from thibaut-kobold/ta/ravel
jcapriot Jan 29, 2024
716e221
Fix implementation of coterminal function (#1334)
domfournier Feb 1, 2024
bb3a488
move averaging outside of matrix construction
lheagy Feb 2, 2024
67b7bd9
Move parent setting to WeightedLeastSquares
domfournier Feb 4, 2024
2a34c0b
Merge branch 'main' into ISSUE-1341
domfournier Feb 4, 2024
eb4ff08
Merge branch 'ISSUE-1341' of https://github.com/SimPEG/simpeg into IS…
domfournier Feb 4, 2024
aafb71e
Update cross gradient hessian approximation
jcapriot Feb 9, 2024
5e603f7
Merge branch 'main' into linear-problem
lheagy Feb 11, 2024
8a0de9c
Merge pull request #1355 from jcapriot/cg_spd_hess
jcapriot Feb 13, 2024
97deb3a
Merge branch 'main' into ISSUE-1341
domfournier Feb 14, 2024
707dd65
Merge pull request #1342 from simpeg/ISSUE-1341
jcapriot Feb 15, 2024
cf9ee65
Merge branch 'main' into linear-problem
lheagy Feb 17, 2024
50a864e
Fix partial derivatives in regularization docs (#1362)
santisoler Feb 20, 2024
c6d05c3
Remove factor of half in data misfits and regularizations (#1326)
lheagy Feb 20, 2024
b22e6a2
Improvements to template for a bug report issue (#1359)
lheagy Feb 22, 2024
8543ce0
Merge branch 'main' into linear-problem
lheagy Feb 26, 2024
ff5df80
fix sizes on creation of empty G matrix
lheagy Feb 26, 2024
ec7d629
Simplify a few gravity simulation tests (#1363)
santisoler Feb 28, 2024
10add2d
remove print statement
lheagy Feb 28, 2024
d993a0f
add documentation stating what a datum is and how we evaluate the int…
lheagy Feb 28, 2024
6d9c0fc
Merge branch 'main' into linear-problem
lheagy Feb 28, 2024
20886cc
Merge pull request #1337 from simpeg/linear-problem
jcapriot Feb 29, 2024
0d9adee
Raise error when using magnetic's SourceField
santisoler Feb 29, 2024
507ed61
Update docstring in magnetic survey
santisoler Feb 29, 2024
e2b9277
Update tests/pf to use the UniformBackgroundField
santisoler Feb 29, 2024
2c0f642
Update other tests to use UniformBackgroundField
santisoler Feb 29, 2024
5ca010a
Update examples and tutorials
santisoler Feb 29, 2024
6bce940
Make sure that SourceField will throw an error
santisoler Mar 1, 2024
3d9a162
Merge pull request #1364 from simpeg/ditch-mag-sourcefield
jcapriot Mar 2, 2024
bae455a
Remove deprecated regularization classes (#1365)
santisoler Mar 5, 2024
7fe2c33
Removed deprecated properties of UpdateSensitivityWeights (#1368)
santisoler Mar 6, 2024
887cfe2
Replace indActive for active_cells in regularizations (#1366)
santisoler Mar 11, 2024
f2e29ad
Remove the debug argument from InversionDirective (#1370)
santisoler Mar 13, 2024
01bc7fa
Remove cellDiff properties of RegularizationMesh (#1371)
santisoler Mar 13, 2024
c9acbd4
Remove deprecated bits of code (#1372)
santisoler Mar 13, 2024
4a3bab1
Use choclo in gravity tutorials (#1378)
santisoler Mar 14, 2024
316fd69
Remove surface2ind_topo (#1374)
santisoler Mar 14, 2024
d8c9042
Speed up sphinx documentation building (#1382)
jcapriot Mar 15, 2024
27f382f
Add docs/sg_execution_times.rst to .gitignore (#1380)
santisoler Mar 15, 2024
1cb3cea
Describe merge process of Pull Requests in docs (#1375)
santisoler Mar 15, 2024
7420f93
Simplify private methods in gravity simulation (#1384)
santisoler Mar 19, 2024
3be7d40
Update Slack links: point to Mattermost (#1385)
santisoler Mar 27, 2024
e8367b0
added getJ for fdem and nsem simulations (#1276)
JKutt Mar 27, 2024
03c71a0
Add LogisticSigmoidMap (#1352)
ckohnke Mar 27, 2024
0b57ca9
Remove the cell_weights attribute in regularizations (#1376)
santisoler Mar 27, 2024
23e27d7
Remove regmesh, mref and gradientType from regularizations (#1377)
santisoler Mar 27, 2024
6b9c6ba
Test if gravity sensitivities are stored on disk (#1388)
santisoler Mar 28, 2024
6952d90
Check if mesh is 3D when using Choclo in gravity simulation (#1386)
santisoler Mar 28, 2024
3ba9a4b
Rotated Gradients (#1167)
jcapriot Mar 28, 2024
4c4a2d9
Add directives to the API Reference (#1397)
santisoler Mar 28, 2024
d44a1e6
Remove deprecated modelType in mag simulation (#1399)
santisoler Mar 28, 2024
7eaf970
Remove mref property of PGI regularization (#1400)
santisoler Mar 28, 2024
489851f
Add link to User Tutorials to navbar in docs (#1401)
santisoler Apr 2, 2024
eeb406f
Improve documentation for base simulation classes (#1295)
ghwilliams Apr 2, 2024
b8d8b8a
Enforce regularization `weights` as dictionaries (#1344)
YingHuuu Apr 3, 2024
d06feea
Minor adjustments to Sphinx configuration (#1398)
santisoler Apr 3, 2024
9af04b1
Update AUTHORS.rst (#1259)
lheagy Apr 3, 2024
20d0379
Update year in LICENSE (#1404)
lheagy Apr 3, 2024
9c3ff43
Dask MetaSim (#1199)
jcapriot Apr 3, 2024
a0f0e98
Add Ying and Williams to AUTHORS.rst (#1405)
santisoler Apr 4, 2024
64cc32c
Remove link to "twitter" (#1406)
jcapriot Apr 4, 2024
00e2b0a
Bump Black version to 24.3.0 (#1403)
santisoler Apr 4, 2024
843ed35
Add release notes for SimPEG v0.21 (#1409)
santisoler Apr 9, 2024
de79ed0
Publish documentation on azure (#1412)
jcapriot Apr 9, 2024
ee05f30
Fix hard dask dependency (#1415)
jcapriot Apr 10, 2024
5cd200d
Add release notes for v0.21.1 (#1416)
santisoler Apr 10, 2024
fa5d794
Remove the parameters argument from docstring (#1417)
santisoler Apr 11, 2024
999d18c
Use reviewdog to annotate PR's with black and flake8 errors. (#1424)
jcapriot Apr 16, 2024
8a763d3
Safely run reviewdog on `pull_request_target` events (#1427)
jcapriot Apr 17, 2024
fbd92e5
Add new Issue template for making a release (#1410)
santisoler Apr 25, 2024
b85f758
Replace use of `refine_tree_xyz` in DCIP tutorials (#1381)
santisoler Apr 25, 2024
07aeb65
Fix rst syntax in release notes for v0.21.0 (#1434)
santisoler Apr 25, 2024
65faf89
Merge commit '07aeb65de865cd9df55e2d51ca840ea9d60f2234' into ta/parti…
thibaut-kobold May 8, 2024
e4bd54b
move extended rotated to MP
thibaut-kobold May 9, 2024
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
7 changes: 7 additions & 0 deletions .azure-pipelines/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ jobs:
pytest ${{ test }} -v --cov-config=.coveragerc --cov=SimPEG --cov-report=xml --cov-report=html -W ignore::DeprecationWarning
displayName: 'Testing ${{ test }}'

- task: PublishPipelineArtifact@1
inputs:
targetPath: $(Build.SourcesDirectory)/docs/_build/html
artifactName: html_docs
displayName: 'Publish documentation artifact'
condition: eq('${{ test }}', 'tests/docs -s -v')

- script: |
curl -Os https://uploader.codecov.io/latest/linux/codecov
chmod +x codecov
Expand Down
8 changes: 4 additions & 4 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ body:
- type: markdown
attributes:
value: >
Thanks for your use of SimPEG and for taking the time to report a bug! Please
Thanks for using SimPEG and taking the time to report a bug! Please
first double check that there is not already a bug report on this issue by
searching through the existing bugs.

Expand All @@ -19,11 +19,11 @@ body:

- type: textarea
attributes:
label: "Reproducable code example:"
label: "Reproducible code example:"
description: >
Please submit a small, but complete, code sample that reproduces the
bug or missing functionality. It should be able to be copy-pasted
into a Python interpreter and ran as-is.
into a Python interpreter and run as-is.
placeholder: |
import SimPEG
<< your code here >>
Expand Down Expand Up @@ -58,4 +58,4 @@ body:
placeholder: |
<< your explanation here >>
validations:
required: false
required: false
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ contact_links:
url: https://simpeg.discourse.group/
about: "If you have a question on how to use SimPEG, please submit them to our discourse page."
- name: Development-related matters
url: http://slack.simpeg.xyz/
about: "If you would like to discuss SimPEG, any geophysics related problems, or need help from the SimPEG team, get in touch with us on slack."
url: https://mattermost.softwareunderground.org/simpeg
about: "If you would like to discuss SimPEG, any geophysics related problems, or need help from the SimPEG team, get in touch with us on Mattermost."
9 changes: 5 additions & 4 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ body:
- type: markdown
attributes:
value: >
If you'd like to request a new feature in SimPEG, or suggest changes in the
functionality of certain functions, we recommend getting in touch with the
developers on [slack](https://slack.simpeg.xyz), in addition to opening an
issue or pull request here.
If you'd like to request a new feature in SimPEG, or suggest changes in
the functionality of certain functions, we recommend getting in touch
with the developers on
[Mattermost](https://mattermost.softwareunderground.org/simpeg), in
addition to opening an Issue or Pull Request here.
You can also check out our
[Contributor Guide](https://docs.simpeg.xyz/content/getting_started/contributing/index.html)
if you need more information.
Expand Down
151 changes: 151 additions & 0 deletions .github/ISSUE_TEMPLATE/release-checklist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
---
name: Release checklist
about: "Maintainers only: Checklist for making a new release"
title: "Release vX.Y.Z"
labels: "maintenance"
assignees: ""
---

<!-- Optional -->

**Target date:** YYYY/MM/DD

## Generate release notes

### Autogenerate release notes with GitHub

- [ ] Generate a draft for a new Release in GitHub.
- [ ] Create a new tag for it (the version number with a leading `v`).
- [ ] Generate release notes automatically.
- [ ] Copy those notes and paste them into a `notes.md` file.
- [ ] Discard the draft (we'll generate a new one later on).

### Add release notes to the docs

- [ ] Convert the Markdown file to RST with: `pandoc notes.md -o notes.rst`.
- [ ] Generate list of contributors from the release notes with:
```bash
grep -Eo "@[[:alnum:]-]+" notes.rst | sort -u | sed -E 's/^/* /'
```
Paste the list into the file under a new `Contributors` category.
- [ ] Check if every contributor that participated in the release is in the
list. Generate a list of authors and co-authors from the git log with (update
the `last_release`):
```bash
export last_release="v0.20.0"
git shortlog HEAD...$last_release -sne > contributors
git log HEAD...$last_release | grep "Co-authored-by" | sed 's/Co-authored-by://' | sed 's/^[[:space:]]*/ /' | sort | uniq -c | sort -nr | sed 's/^ //' >> contributors
sort -rn contributors
```
- [ ] Transform GitHub handles into links to their profiles:
```bash
sed -Ei 's/@([[:alnum:]-]+)/`@\1 <https:\/\/github.com\/\1>`__/' notes.rst
```
- [ ] Copy the content of `notes.rst` to a new file
`docs/content/release/<version>-notes.rst`.
- [ ] Edit the release notes file, following the template below and the
previous release notes.
- [ ] Add the new release notes to the list in `docs/content/release/index.rst`.
- [ ] Open a PR with the new release notes.
- [ ] Manually view the built documentation by downloading the Azure `html_doc`
artifact and check for formatting and errors.
- [ ] Merge that PR


<details>
<summary>Template for release notes:</summary>

```rst
.. _<VERSION>_notes:

===========================
SimPEG <VERSION> Release Notes
===========================

MONTH DAYth, YEAR

.. contents:: Highlights
:depth: 3

Updates
=======

New features
------------

..
list new features under subheadings, include link to related PRs

Documentation
-------------

..
list improvements to documentation

Bugfixes
--------

..
list bugfixes, include link to related PRs

Breaking changes
----------------

..
list breaking changes introduced in this new release, include link to
releated PRs

Contributors
============

..
paste list of contributors that was generated in `notes.rst`

Pull Requests
=============

..
paste list of PRs that were copied to `notes.rst`
```

</details>


## Make the new release

- [ ] Draft a new GitHub Release
- [ ] Create a new tag for it (the version number with a leading `v`).
- [ ] Target the release on `main` or on a particular commit from `main`
- [ ] Generate release notes automatically.
- [ ] Publish the release

## Extra tasks

After publishing the release, Azure will automatically push the new version to
PyPI, and build and deploy the docs. You can check the progress of these tasks
in: https://dev.azure.com/simpeg/simpeg/_build

After they finish:

- [ ] Check the new version is available in PyPI: https://pypi.org/project/SimPEG/
- [ ] Check the new documentation is online: https://docs.simpeg.xyz

For the new version to be available in conda-forge, we need to update the
[conda-forge/simpeg-feedstock](https://github.com/conda-forge/simpeg-feedstock)
repository. Within the same day of the release a new PR will be automatically
open in that repository. So:

- [ ] Follow the steps provided in the checklist in that PR and merge it.
- [ ] Make sure the new version is available through conda-forge: https://anaconda.org/conda-forge/simpeg

Lastly, we would need to update the SimPEG version used in
[`simpeg/user-tutorials`](https://github.com/simpeg/user-tutorials) and rerun
its notebooks:

- [ ] Open issue in
[`simpeg/user-tutorials`](https://github.com/simpeg/user-tutorials) for
rerunning the notebooks using the new released version of SimPEG

Finally:

- [ ] Close this issue
58 changes: 58 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name : Reviewdog PR Annotations
on: [pull_request_target]

jobs:
flake8:
runs-on: ubuntu-latest
name: Flake8 check
steps:
- name: Checkout target repository source
uses: actions/checkout@v4

- name: Setup Python env
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies to run the flake8 checks
run: pip install -r requirements_style.txt

- name: checkout pull request source
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
path: pr_source

- name: flake8 review
uses: reviewdog/action-flake8@v3
with:
workdir: pr_source
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review

black:
name: Black check
runs-on: ubuntu-latest
steps:
- name: Checkout target repository source
uses: actions/checkout@v4

- name: Setup Python env
uses: actions/setup-python@v5
with:
python-version: '3.11'

- name: Install dependencies to run the black checks
run: pip install -r requirements_style.txt

- name: checkout pull request source
uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha }}
path: 'pr_source'

- uses: reviewdog/action-black@v3
with:
workdir: 'pr_source'
github_token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-review
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ docs/content/api/generated/*
docs/content/examples/*
docs/content/tutorials/*
docs/modules/*
docs/sg_execution_times.rst
.vscode/*

# paths to where data are downloaded
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.3.0
hooks:
- id: black
language_version: python3
Expand Down
9 changes: 8 additions & 1 deletion AUTHORS.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,11 @@
- Thibaut Astic, (`@thast <https://github.com/thast/>`_)
- Michael Mitchell, (`@micmitch <https://github.com/micmitch/>`_)
- I-Kang Ding, (`@ikding <https://github.com/ikding/>`_)
- Richard Scott (`@bluetyson <https://github.com/bluetyson/>`_)
- Richard Scott, (`@bluetyson <https://github.com/bluetyson/>`_)
- Xiaolong Wei, (`@xiaolongw1223 <https://github.com/xiaolongw1223>`_)
- Santiago Soler, (`@santisoler <https://github.com/santisoler>`_)
- Nick Williams, (`@nwilliams-kobold <https://github.com/nwilliams-kobold>`_)
- John Weis, (`@johnweis0480 <https://github.com/johnweis0480>`_)
- Kalen Martens, (`@kalen-sj <https://github.com/kalen-sj>`_)
- Williams A. Lima (`@ghwilliams <https://github.com/ghwilliams>`_)
- Ying Hu, (`@YingHuuu <https://github.com/YingHuuu>`_)
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2013-2023 SimPEG Developers
Copyright (c) 2013-2024 SimPEG Developers

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
Expand Down
14 changes: 8 additions & 6 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ SimPEG
.. image:: https://img.shields.io/discourse/users?server=http%3A%2F%2Fsimpeg.discourse.group%2F
:target: https://simpeg.discourse.group/

.. image:: https://img.shields.io/badge/Slack-simpeg-4A154B.svg?logo=slack
:target: http://slack.simpeg.xyz
.. image:: https://img.shields.io/badge/simpeg-purple?logo=mattermost&label=Mattermost
:target: https://mattermost.softwareunderground.org/simpeg

.. image:: https://img.shields.io/badge/Youtube%20channel-GeoSci.xyz-FF0000.svg?logo=youtube
:target: https://www.youtube.com/channel/UCBrC4M8_S4GXhyHht7FyQqw
Expand Down Expand Up @@ -109,7 +109,8 @@ Questions
If you have a question regarding a specific use of SimPEG, the fastest way
to get a response is by posting on our Discourse discussion forum:
https://simpeg.discourse.group/. Alternatively, if you prefer real-time chat,
you can join our slack group at http://slack.simpeg.xyz.
you can join our Mattermost Team at
https://mattermost.softwareunderground.org/simpeg.
Please do not create an issue to ask a question.


Expand All @@ -121,7 +122,8 @@ for developers to discuss upcoming changes to the code base, and for
discussing topics related to geophysics in general.
Currently our meetings are held every Wednesday, alternating between
a mornings (10:30 am pacific time) and afternoons (3:00 pm pacific time)
on even numbered Wednesdays. Find more info on our `slack <http://slack.simpeg.xyz>`_.
on even numbered Wednesdays. Find more info on our
`Mattermost <https://mattermost.softwareunderground.org/simpeg>`_.


Links
Expand All @@ -134,8 +136,8 @@ Forums:
https://simpeg.discourse.group/


Slack (real time chat):
http://slack.simpeg.xyz
Mattermost (real time chat):
https://mattermost.softwareunderground.org/simpeg


Documentation:
Expand Down
1 change: 1 addition & 0 deletions SimPEG/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
maps.InjectActiveEdges
maps.MuRelative
maps.LogMap
maps.LogisticSigmoidMap
maps.ParametricBlock
maps.ParametricCircleMap
maps.ParametricEllipsoid
Expand Down
3 changes: 3 additions & 0 deletions SimPEG/base/pde_simulation.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ def __inner_mat_mul_op(M, u, v=None, adjoint=False):
# u has multiple fields
if v.ndim == 1:
v = v[:, None]
if adjoint and v.shape[1] != u.shape[1] and v.shape[1] > 1:
# make sure v is a good shape
v = v.reshape(u.shape[0], -1, u.shape[1])
else:
if v.ndim > 1:
u = u[:, None]
Expand Down
Loading