Skip to content
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

Geopy 1573 #49

Merged
merged 576 commits into from
Jun 14, 2024
Merged

Geopy 1573 #49

merged 576 commits into from
Jun 14, 2024

Conversation

domfournier
Copy link

No description provided.

santisoler and others added 30 commits June 23, 2023 09:30
Add test method that checks if error is raised after trying to set an
invalid mapping class to a BaseObjectiveFunction.
Remove `W291` and `W293` from list of ignored rules in `.flake8`. Remove
trailing whitespaces and whitespaces in empty lines.
Instead of using gzz = -gxx - gyy, which needs to be adjusted if inside a cell.
Fix flake `F403` and `F405` errors: don't use star imports
Fix W291 and W293 flake errors: white spaces
Remove B028 from the list of ignored rules in `.flake`. Explicitly set
stacklevel on `warning.warn` calls.
Fix B028 flake error: non-explicit stacklevel
Specify stacklevels to new warnings.
Refactor `BaseObjectiveFunction` and `ComboObjectiveFunction`
* Make units of gravity simulations more explicit

Add admonitions to the `Point` receiver for gravity simulations.
Fix unit in the plot legend of one of the examples.

* Explicit expected units of the density model

* Add admonitions to gravity.Simulation3DIntegral

Include the admonitions regarding model units and returned units to the
SimPEG.potential_fields.gravity.Simulation3DIntegral class.

Co-authored-by: John Weis <johnweis0480@users.noreply.github.com>
Co-authored-by: Joseph Capriotti <josephrcapriotti@gmail.com>
Co-authored-by: Joseph Capriotti <josephrcapriotti@gmail.com>
santisoler and others added 17 commits June 6, 2024 15:13
Include the version of SimPEG being used to run a simulation in the
inversion log.

Fixes simpeg#1474
Replace the usage of the deprecated functions in `numpy.random` module
for the Numpy's random number generator class and its methods, in most
of the FDEM tests. Increase number of iterations for checking
derivatives where needed.

Part of the solution to simpeg#1289

---------

Co-authored-by: Lindsey Heagy <lindseyheagy@gmail.com>
…g#1448)

Add a new `random_seed` argument to the `test()` method of objective
functions to control their random state. Use Numpy's random number
generator for managing the random state and the generation of random
numbers. Minor improvements to the implementation of the test methods.
Update tests that make use of these methods, and make them to use a seed
in every case.

Part of the solution to simpeg#1289
# Conflicts:
#	.pre-commit-config.yaml
#	SimPEG/dask/__init__.py
#	SimPEG/data_misfit.py
#	SimPEG/directives/__init__.py
#	SimPEG/electromagnetics/frequency_domain/simulation.py
#	SimPEG/potential_fields/gravity/simulation.py
#	SimPEG/regularization/base.py
#	SimPEG/regularization/cross_gradient.py
#	SimPEG/regularization/sparse.py
#	SimPEG/simulation.py
#	requirements_style.txt
#	setup.py
#	simpeg/base/pde_simulation.py
#	simpeg/dask/data_misfit.py
#	simpeg/dask/electromagnetics/frequency_domain/__init__.py
#	simpeg/dask/electromagnetics/frequency_domain/simulation.py
#	simpeg/dask/electromagnetics/static/induced_polarization/simulation.py
#	simpeg/dask/electromagnetics/static/induced_polarization/simulation_2d.py
#	simpeg/dask/electromagnetics/static/resistivity/simulation_2d.py
#	simpeg/dask/electromagnetics/time_domain/__init__.py
#	simpeg/dask/electromagnetics/time_domain/simulation.py
#	simpeg/dask/inverse_problem.py
#	simpeg/dask/objective_function.py
#	simpeg/directives/directives.py
#	simpeg/electromagnetics/natural_source/receivers.py
#	simpeg/maps.py
#	simpeg/potential_fields/base.py
#	simpeg/potential_fields/magnetics/simulation.py
#	simpeg/regularization/regularization_mesh.py
#	simpeg/utils/mat_utils.py
@domfournier domfournier requested a review from benk-mira June 11, 2024 20:04
@domfournier domfournier merged commit 0957b9c into develop Jun 14, 2024
3 checks passed
@domfournier domfournier deleted the GEOPY-1573 branch June 14, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.