forked from simpeg/simpeg
-
Notifications
You must be signed in to change notification settings - Fork 2
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
Geopy 1573 #49
Conversation
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
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.
Always calculate gzz if needed
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>
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
This reverts commit 43b854a.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
No description provided.