A suite of forward codes for inversion testing.
Project description
Inversion Test Problems
Inversion Test Problems (ITP) is a collection of clearly defined forward codes that simulate a wide range of geophysical processes. The goal of ITP is to bring together people developing physical simulations with those who need them. ITP's simple and consistent code structure enables users to acces a wide range of different forward code and contributers to share their solutions with a wider audience. For more information, please visit our documentation (coming soon).
Installation
It is recommended to use a clean virtual environment for the install:
conda create -n ITP_env scipy jupyterlab numpy matplotlib
conda activate ITP_env
Inversion Test Problems
is available on PyIP and can be installed using this command:
Linux/MacOS
python3 -m pip install --index-url https://test.pypi.org/simple/ inversiontestproblems-h-hollmann
Windows:
py -m pip install --index-url https://test.pypi.org/simple/ inversiontestproblems-h-hollmann
Basic usage
Once installed, each test problem can be imported using the following command:
from inversiontestproblems import testproblem
Replace testproblem
with one of the following currently available problems:
gravityforward
:
Once a problem is imported, it's main functions can be called using the same structure for each problem. For more information for each function please use help():
from inversiontestproblems import testproblem
tp = testproblem()
model=tp.get_model()
data=tp.get_data()
synthetic_data = tp.forward(model)
jacobian=tp.gradient(model)
tp.plot_model()
Other problem-specific values can be accessed through the 'testproblem' object, such as:
tp.rec_coords # coordinates of recording locations
tp.x_nodes # x-coordinates of all nodes of the model
Which additional values are set is highly example-specific and we suggest to use 'help(tp)' or 'dir(tp)' to quickly see what is available, or consult the Inversion Test Suite Documentation (coming soon).
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file inversion-test-test-0.0.33.tar.gz
.
File metadata
- Download URL: inversion-test-test-0.0.33.tar.gz
- Upload date:
- Size: 42.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43141e4c94ec741dd1ac13f6f28fa08a49c48432e4e8e29fd1841e5696e13af1 |
|
MD5 | 1a53963fd0bb25f4d4d91ed60df8042e |
|
BLAKE2b-256 | c48df9800504bb8abceca224f23d77d069f2c2bb135230f3e88987538c0bd606 |
File details
Details for the file inversion_test_test-0.0.33-py3-none-any.whl
.
File metadata
- Download URL: inversion_test_test-0.0.33-py3-none-any.whl
- Upload date:
- Size: 35.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.0 CPython/3.10.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5cb98800984324480441bb8ffd464aa8e769d1bb8424c5df725a46ed6b8533c6 |
|
MD5 | f58950981e9a5d35b0c23f8c3418a274 |
|
BLAKE2b-256 | 28f7a1a1182e6d0d292cd125513278a79c43dbe545080c72b0589f5531cf36fa |