Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
576 commits
Select commit Hold shift + click to select a range
4cd2354
Merge branch 'main' into flake-star-imports
santisoler Jun 23, 2023
b672703
Merge branch 'main' into refactor-base-combo
santisoler Jun 23, 2023
e3ce0c2
Extend tests for cell_weights and weights
santisoler Jun 23, 2023
205ae80
Fix flake8 warnings with new rules
santisoler Jun 23, 2023
8cec45b
Don't import private methods
santisoler Jun 23, 2023
f8a82e5
Import geometric_factor for backward compatibility
santisoler Jun 23, 2023
8131528
Tests invalid mapping for BaseObjectiveFunction
santisoler Jun 23, 2023
5b588c3
Test invalid parent in BaseRegularization
santisoler Jun 23, 2023
82e9efc
Test invalid and empty objfcts in ComboObjectiveFunction
santisoler Jun 23, 2023
85bbb8e
Fix W291 and W293 flake errors: white spaces
santisoler Jun 23, 2023
7e5936d
Always calculate gzz if needed
jcapriot Jun 23, 2023
dd24a0f
Merge pull request #1253 from jcapriot/gzz_calc
jcapriot Jun 23, 2023
9005c16
Merge pull request #1244 from santisoler/flake-star-imports
jcapriot Jun 23, 2023
71dbe32
Merge pull request #1252 from santisoler/flake-white-spaces
jcapriot Jun 23, 2023
f0dd328
Fix B028 flake error: non-explicit stacklevel
santisoler Jun 23, 2023
d542e51
Use setter for mapping in BaseObjectiveFunction
santisoler Jun 23, 2023
2692155
Merge branch 'main' into flake-warns-stacklevel
santisoler Jun 23, 2023
9de21bf
Merge pull request #1254 from simpeg/flake-warns-stacklevel
jcapriot Jun 24, 2023
408bec6
Merge branch 'main' into regularization_docstrings
dccowan Jun 26, 2023
d3800a6
Post PGI regularization docstring comments
dccowan Jun 26, 2023
f29750a
Merge branch 'main' into refactor-base-combo
santisoler Jun 26, 2023
5e3c081
Set mapping through setter only if it's not None
santisoler Jun 26, 2023
ea6232f
Solve recent flake8 non-ignored rule
santisoler Jun 26, 2023
24de8cf
Test the parent setter for BaseRegularizations
santisoler Jun 26, 2023
74381b7
Merge pull request #1241 from santisoler/refactor-base-combo
jcapriot Jun 27, 2023
959be80
Merge branch 'main' into regularization_docstrings
dccowan Jul 4, 2023
5c0b902
Make units of gravity simulations more explicit (#1256)
santisoler Jul 4, 2023
95dec85
unpack the data misfits for plotting tikhonov curves
lheagy Jul 5, 2023
1bf729a
Update SimPEG/electromagnetics/frequency_domain/fields.py
lheagy Jul 5, 2023
a8c6998
Update SimPEG/electromagnetics/frequency_domain/simulation.py
lheagy Jul 5, 2023
de4ccc6
Update SimPEG/electromagnetics/frequency_domain/simulation.py
lheagy Jul 5, 2023
ac4ef6c
Merge branch 'main' into regularization_docstrings
dccowan Jul 5, 2023
d799bb8
remove unused import
lheagy Jul 6, 2023
86ccb8a
update warning stacklevel based on flake8
lheagy Jul 6, 2023
0f543aa
fix missed comma in warning
lheagy Jul 6, 2023
deb5b88
Update pull_request_template.md (#1258)
lheagy Jul 7, 2023
dc194f6
Anisotropy derivative support (#1237)
jcapriot Jul 7, 2023
e38d6b6
update geoana minimum version
jcapriot Jul 8, 2023
846f62a
Merge branch 'main' into fdem-permittivity
jcapriot Jul 8, 2023
2a4dff7
optionally import utm (#1260)
jcapriot Jul 11, 2023
e6bdd27
Merge branch 'main' into fdem-permittivity
jcapriot Jul 11, 2023
e738320
Merge pull request #1236 from simpeg/fdem-permittivity
jcapriot Jul 12, 2023
07085d9
Set storage type of pf sensitivity matrix (#1261)
jcapriot Jul 13, 2023
a7e7dc7
Merge branch 'main' into regularization_docstrings
dccowan Jul 17, 2023
4307fc3
Merge pull request #1225 from simpeg/regularization_docstrings
dccowan Jul 17, 2023
a6ba12f
Fix sparse inversion example: remove beta schedule
santisoler Jul 18, 2023
8aadd54
final unresolved comments (#1262)
dccowan Jul 19, 2023
85d3517
Merge pull request #1264 from simpeg/sparse-tutorial
jcapriot Jul 19, 2023
f14ad5b
Merge pull request #1257 from simpeg/bug-misfit-curve-plotting
jcapriot Jul 19, 2023
b80a5ba
Add building docs and serving them to documentation
andieie Jul 30, 2023
ed8a0ab
Add serve target to docs/Makefile
santisoler Jul 30, 2023
b9dbc48
use setuptools_scm to track version
jcapriot Aug 8, 2023
27a9557
fix new flake errors
jcapriot Aug 8, 2023
433fcb6
Merge pull request #1274 from jcapriot/setuptools_scm
jcapriot Aug 8, 2023
0e61ce2
Merge branch 'main' into 0.20.0_staging
jcapriot Aug 8, 2023
9ac8aa4
update deploy script
jcapriot Aug 8, 2023
2389485
Merge pull request #1267 from andieie/docs-build
jcapriot Aug 9, 2023
1c23b6c
Merge branch 'main' into 0.20.0_staging
jcapriot Aug 9, 2023
0274c7a
Add release notes
jcapriot Aug 9, 2023
eaa77f7
add future warnings from 0.19.0
jcapriot Aug 9, 2023
3b3dc40
add self referencing PR
jcapriot Aug 9, 2023
08c04a4
Import BaseAmplitude for docs
jcapriot Aug 9, 2023
a1e8984
fix documentation rst codeblock
jcapriot Aug 9, 2023
a49411f
ignore BaseAmplitude in generalized regularization tests.
jcapriot Aug 9, 2023
364deb8
Merge pull request #1275 from jcapriot/0.20.0_staging
jcapriot Aug 9, 2023
d414820
Add 0.20.0 release notes to toc
jcapriot Aug 9, 2023
fcaf07a
Merge pull request #1277 from jcapriot/add_0.20.0_notes
jcapriot Aug 10, 2023
172041e
add plausible analytics to simpeg docs
lheagy Aug 23, 2023
ebde585
Merge pull request #1279 from simpeg/docs-analytics
lheagy Aug 27, 2023
95aed99
Update links in documentation
mplough-kobold Sep 6, 2023
e1667db
Update links in .github
mplough-kobold Sep 6, 2023
b42d0d0
Merge pull request #1282 from mplough-kobold/main
jcapriot Sep 6, 2023
875fc32
Run pytest on Azure with increased verbosity (#1287)
santisoler Sep 21, 2023
c477bbb
Allow to use random seed in make_synthetic_data (#1286)
santisoler Sep 27, 2023
dd0d467
pgi doc
thibaut-kobold Oct 10, 2023
baf4099
typo
thibaut-kobold Oct 11, 2023
3d7666f
Merge pull request #1291 from thibaut-kobold/ta/pgi-doc
jcapriot Oct 18, 2023
1a910ff
Use max of rows of cell_gradient
fourndo Nov 8, 2023
0388c08
Switch to sparse max
fourndo Nov 8, 2023
a73f593
Add unitest
fourndo Nov 8, 2023
211f627
Fix deprecation warning for gradientType in SparseSmoothness (#1284)
santisoler Nov 23, 2023
eb07ef1
Gravity simulation with Choclo as engine (#1285)
santisoler Dec 7, 2023
102f323
Fix minor flake8 warning (#1307)
santisoler Dec 8, 2023
1616d2c
switch tutorials rand to randn
domfournier Dec 27, 2023
ba0c639
One more randn
domfournier Dec 29, 2023
0705270
Merge branch 'main' into Fix_coterminal_angles
domfournier Dec 30, 2023
0cdda50
Merge pull request #1312 from simpeg/ISSUE-1298
jcapriot Jan 2, 2024
182ef1e
Ditch deprecated functions in utils.model_builder (#1311)
domfournier Jan 3, 2024
5231446
Triaxial magnetic gradient forward modelling (#1288)
thibaut-kobold Jan 10, 2024
51fcf3c
Documentation improvements for classes in Objective Function Pieces (…
ghwilliams Jan 11, 2024
e3cd6ed
Fix description of source_field in gravity survey (#1322)
santisoler Jan 11, 2024
eef5e70
Add `weights_keys` method to `BaseRegularization` (#1320)
santisoler Jan 12, 2024
c622790
Merge branch 'main' into Fix_coterminal_angles
domfournier Jan 13, 2024
df0579c
Update test_regularization.py to test vector derivatives. Update Ampl…
johnweis0480 Jan 14, 2024
87bd11a
Update test_regularization.py to test vector derivatives. Update Ampl…
johnweis0480 Jan 14, 2024
5cb5d63
Bump versions of flake8 and black and pin flake plugins (#1330)
santisoler Jan 16, 2024
9ec8ee5
Move `__init__` in `BaseSimulation` to the top of the class (#1323)
santisoler Jan 16, 2024
9fbd787
Update test_regularization.py to test vector derivatives. Update Ampl…
johnweis0480 Jan 17, 2024
febd70c
Merge branch 'simpeg:main' into simpeg_vector_update
johnweis0480 Jan 17, 2024
b01ee19
Merge branch 'simpeg_vector_update' of https://github.com/johnweis048…
johnweis0480 Jan 17, 2024
b9db20a
Merge branch 'main' into Fix_coterminal_angles
domfournier Jan 17, 2024
4920c05
Merge pull request #1329 from johnweis0480/simpeg_vector_update
lheagy Jan 17, 2024
926fb1c
Fix typo in error messages (#1324)
santisoler Jan 19, 2024
0cc9c6e
Merge branch 'main' into Fix_coterminal_angles
santisoler Jan 19, 2024
0b507fb
Extend test to the other orientations
santisoler Jan 19, 2024
392e227
Remove negative sign
domfournier Jan 19, 2024
33bba59
CHange to coterminal
domfournier Jan 20, 2024
a7fa543
Change coterminal expression again
domfournier Jan 20, 2024
b836a27
Switch to gradient.sign()
domfournier Jan 21, 2024
3e05248
Apply sign to second SmoothnessSecondOrder
domfournier Jan 21, 2024
95c80fa
Revert changes to coterminal, to be addressed on ISSUE-1333
domfournier Jan 21, 2024
106fc8c
Simplify check for invalid multipliers
santisoler Jan 23, 2024
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
ebd4b7a
Update SimPEG/regularization/regularization_mesh.py
domfournier Jan 28, 2024
b66482a
Apply joe's suggestion to other components.
domfournier Jan 28, 2024
8bfb0dd
Set function's parent on init. Augment unitests
domfournier Jan 28, 2024
2bd131b
Use future import
domfournier Jan 28, 2024
b6cceab
Merge pull request #1299 from simpeg/Fix_coterminal_angles
jcapriot Jan 29, 2024
6edc293
Merge pull request #1336 from simpeg/multipliers
jcapriot Jan 29, 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
8ab946e
Move to a PEP8 compliant package name. (#1430)
jcapriot Apr 25, 2024
c2126cd
Update copyright year in __init__.py (#1436)
lheagy Apr 26, 2024
0f90d55
Replace SimPEG for simpeg across docstrings (#1438)
santisoler Apr 29, 2024
a22fb58
Lowercase simpeg for generating coverage on Azure (#1443)
santisoler Apr 29, 2024
aa0a258
Rename spontaneous potential to self potential (#1422)
lheagy May 1, 2024
fe444e2
Fix distance calculation in `convert_survey_3d_to_2d_lines` (#1390)
kehrl-kobold May 6, 2024
c4b2750
Replace SimPEG for simpeg in API reference (#1446)
santisoler May 10, 2024
c12f51e
Replace SimPEG for simpeg in getting started pages (#1447)
santisoler May 10, 2024
7dec0be
Check inputs for converting 3d surveys to 2d lines (#1392)
santisoler May 13, 2024
6f35ed2
Always use Pydata Sphinx theme for building docs (#1445)
santisoler May 15, 2024
e13a25f
Simplify interface of UniformBackgroundField (#1421)
santisoler May 15, 2024
80e3b18
Ensure the queue's are joined when the meta simulation is joined. (#1…
jcapriot May 15, 2024
50306ee
Add maintenance issue template (#1468)
santisoler May 16, 2024
dcec9d5
Add instructions to update the environment (#1462)
santisoler May 17, 2024
67c0416
Stop recommending mamba for installing simpeg (#1463)
santisoler May 17, 2024
712cfda
Fix bug on arguments of beta estimator directives (#1460)
santisoler May 22, 2024
bc9a424
Improve interface for DC Dipole source (#1393)
santisoler May 22, 2024
079d870
Use Numpy random number generator in codebase (#1394)
santisoler May 22, 2024
5ed93bf
Extend docstrings for FDEM and TDEM fields and 3D simulations (#1414)
dccowan May 30, 2024
5d489f3
Magnetic simulation with Choclo as engine (#1321)
santisoler May 31, 2024
cbd200b
Fix typos in EM docstrings (#1473)
santisoler May 31, 2024
dd7cc94
Fix call to private method in GaussianMixtureWithPrior (#1476)
santisoler Jun 5, 2024
ae63c36
Add version switcher to Sphinx docs (#1428)
santisoler Jun 5, 2024
23d8cd3
Use random seed on synthetic data in mag tests (#1457)
santisoler Jun 6, 2024
f6b8035
Fix links to source code in documentation pages (#1444)
santisoler Jun 6, 2024
30fadd3
Fix script for new deployment of docs (#1478)
santisoler Jun 6, 2024
772429a
Print SimPEG version in the inversion log (#1477)
santisoler Jun 6, 2024
caa60b7
Use Numpy rng in FDEM tests (#1449)
santisoler Jun 7, 2024
efad8b0
Add `random_seed` argument to objective fun's derivative tests (#1448)
santisoler Jun 7, 2024
111fff2
Merge branch 'main' into GEOPY-1573
domfournier Jun 9, 2024
1cb0a55
Add model_map back
domfournier Jun 9, 2024
9e95650
Add getJtJdiag
domfournier Jun 9, 2024
943abee
Fix reference to compute_J
domfournier Jun 9, 2024
6e126db
Add back old beta estimator
domfournier Jun 10, 2024
fc6dbdd
Update version and init
domfournier Jun 10, 2024
92b49a3
Fix mag kernel for forward only. Add back Vector directive
domfournier Jun 10, 2024
f19c42c
Update simpeg directive SaveGeoh5
domfournier Jun 10, 2024
c399655
Bring back sparse receiver derivatives
domfournier Jun 10, 2024
6ee49f5
Add back sensitivity storage to base class
domfournier Jun 10, 2024
0948ee2
Store Ainv on the class, fields only returns fields
domfournier Jun 11, 2024
636fd9f
Update cross-gradient
domfournier Jun 11, 2024
1b81d6a
Fix radian update. Default to no-cross on angles
domfournier Jun 11, 2024
c2f34dd
Black and flake8
domfournier Jun 11, 2024
6cefa5e
Change to lower case name
domfournier Jun 11, 2024
1d96479
Delete SimPEG directory
domfournier Jun 12, 2024
88f95da
Add files via upload
domfournier Jun 12, 2024
da57e46
Fix bad import
domfournier Jun 12, 2024
a20c755
Merge branch 'GEOPY-1573' of https://github.com/MiraGeoscience/simpeg…
domfournier Jun 12, 2024
0ad02ac
Fix warning from numpy
domfournier Jun 13, 2024
547d401
Try reverting ns.receiver module
domfournier Jun 13, 2024
43b854a
Revert changes to mat_mul
domfournier Jun 14, 2024
da72d60
Pass the source
domfournier Jun 14, 2024
63312bd
Revert "Revert changes to mat_mul"
domfournier Jun 14, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
35 changes: 31 additions & 4 deletions .azure-pipelines/matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ parameters:
py_vers: ['3.8']
test: ['tests/em',
'tests/base tests/flow tests/seis tests/utils tests/meta',
'tests/docs',
'tests/docs -s -v',
'tests/examples/test_examples_1.py',
'tests/examples/test_examples_2.py',
'tests/examples/test_examples_3.py',
Expand All @@ -21,7 +21,17 @@ jobs:
displayName: ${{ os }}_${{ py_vers }}_${{ test }}
pool:
vmImage: ${{ os }}
timeoutInMinutes: 120
steps:

# Checkout simpeg repo, including tags.
# We need to sync tags and disable shallow depth in order to get the
# SimPEG version while building the docs.
- checkout: self
fetchDepth: 0
fetchTags: true
displayName: Checkout repository (including tags)

- script: |
wget -O Mambaforge.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge-$(uname)-$(uname -m).sh"
bash Mambaforge.sh -b -p "${HOME}/conda"
Expand All @@ -30,10 +40,14 @@ jobs:
- script: |
source "${HOME}/conda/etc/profile.d/conda.sh"
source "${HOME}/conda/etc/profile.d/mamba.sh"
echo " - python="${{ py_vers }} >> environment_test.yml
mamba env create -f environment_test.yml
cp environment_test.yml environment_test_with_pyversion.yml
echo " - python="${{ py_vers }} >> environment_test_with_pyversion.yml
mamba env create -f environment_test_with_pyversion.yml
rm environment_test_with_pyversion.yml
conda activate simpeg-test
pip install pytest-azurepipelines
echo "\nList installed packages"
conda list
displayName: Create Anaconda testing environment

- script: |
Expand All @@ -42,13 +56,26 @@ jobs:
pip install -e .
displayName: Build package

- script: |
source "${HOME}/conda/etc/profile.d/conda.sh"
conda activate simpeg-test
python -c "import simpeg; print(simpeg.__version__)"
displayName: Check SimPEG version

- script: |
source "${HOME}/conda/etc/profile.d/conda.sh"
conda activate simpeg-test
export KMP_WARNINGS=0
pytest ${{ test }} --cov-config=.coveragerc --cov=SimPEG --cov-report=xml --cov-report=html -W ignore::DeprecationWarning
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
4 changes: 0 additions & 4 deletions .bumpversion.cfg

This file was deleted.

2 changes: 1 addition & 1 deletion .coveragerc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[run]
source = SimPEG
source = simpeg
omit =
*/setup.py
87 changes: 87 additions & 0 deletions .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# ----------------
[flake8]
extend-ignore =
# Default ignores by flake (added here for when ignore gets overwritten)
E121,E123,E126,E226,E24,E704,W503,W504,
# Too many leading '#' for block comment
E266,
# Line too long (82 > 79 characters)
Expand All @@ -20,12 +22,97 @@ exclude =
.git,
__pycache__,
.ipynb_checkpoints,
setup.py,
docs/conf.py,
docs/_build/,
per-file-ignores =
# disable unused-imports errors on __init__.py
__init__.py: F401
exclude-from-doctest =
# Don't check style in docstring of test functions
tests
# Define flake rules that will be ignored for now. Every time a new warning is
# solved througout the entire project, it should be removed to this list.
ignore =
# assertRaises(Exception): should be considered evil
B017,
# Missing docstring in public module
D100,
# Missing docstring in public class
D101,
# Missing docstring in public method
D102,
# Missing docstring in public function
D103,
# Missing docstring in public package
D104,
# Missing docstring in magic method
D105,
# Missing docstring in __init__
D107,
# One-line docstring should fit on one line with quotes
D200,
# No blank lines allowed before function docstring
D201,
# No blank lines allowed after function docstring
D202,
# 1 blank line required between summary line and description
D205,
# Docstring is over-indented
D208,
# Multi-line docstring closing quotes should be on a separate line
D209,
# No whitespaces allowed surrounding docstring text
D210,
# No blank lines allowed before class docstring
D211,
# Use """triple double quotes"""
D300,
# First line should end with a period
D400,
# First line should be in imperative mood; try rephrasing
D401,
# First line should not be the function's "signature"
D402,
# First word of the first line should be properly capitalized
D403,
# No blank lines allowed between a section header and its content
D412,
# Section has no content
D414,
# Docstring is empty
D419,
# module level import not at top of file
E402,
# undefined name %r
F821,
# Block quote ends without a blank line; unexpected unindent.
RST201,
# Definition list ends without a blank line; unexpected unindent.
RST203,
# Field list ends without a blank line; unexpected unindent.
RST206,
# Inline strong start-string without end-string.
RST210,
# Title underline too short.
RST212,
# Inline emphasis start-string without end-string.
RST213,
# Inline interpreted text or phrase reference start-string without end-string.
RST215,
# Inline substitution_reference start-string without end-string.
RST219,
# Unexpected indentation.
RST301,
# Unknown directive type "*".
RST303,
# Unknown interpreted text role "*".
RST304,
# Error in "*" directive:
RST307,
# Previously unseen severe error, not yet assigned a unique code.
RST499,


# Configure flake8-rst-docstrings
# -------------------------------
Expand Down
14 changes: 7 additions & 7 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,13 +19,13 @@ 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
import simpeg
<< your code here >>
render: python
validations:
Expand All @@ -44,8 +44,8 @@ body:
attributes:
label: "Runtime information:"
description: >
Please include the output from `SimPEG.Report()` to describe your system for us.
Paste the output from `from SimPEG import Report; print(Report())` below.
Please include the output from `simpeg.Report()` to describe your system for us.
Paste the output from `from simpeg import Report; print(Report())` below.
validations:
required: true

Expand All @@ -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."
13 changes: 7 additions & 6 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,17 @@ 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/basic/contributing.html)
[Contributor Guide](https://docs.simpeg.xyz/content/getting_started/contributing/index.html)
if you need more information.

- type: textarea
attributes:
label: "Proposed new feature or change:"
validations:
required: true
required: true
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/maintenance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: Maintenance
about: "Maintainers only: Issues for maintenance tasks"
title: "MNT: <Write a comprehensive title after the 'MNT: ' prefix>"
labels: "maintenance"
assignees: ""
---

**Description of the maintenance task**

<!--
Please, explain in detail the issue that requires action to be taken, or why we
should implement certain feature to easy and improve the maintenance of the
package.

If the task can be split in different PRs, list suggested action items to start
working on it.
-->
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/post-install.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Post-install/importing issue
description: Report an issue if you have trouble importing SimPEG after installation.
description: Report an issue if you have trouble importing `simpeg` after installation.
title: "<Please write a comprehensive title here>"
labels: [Installation]

Expand Down
Loading