Skip to content

Commit

Permalink
docs
Browse files Browse the repository at this point in the history
  • Loading branch information
leonfoks committed Jun 5, 2024
1 parent 10d41dc commit c624dbf
Show file tree
Hide file tree
Showing 326 changed files with 1,637 additions and 1,205 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ def plot_2d_summary(folder, data_type, model_type):
"cmap" : 'jet'
}

import warnings
warnings.filterwarnings('error')

fig = plt.figure(figsize=(16, 8))
plt.suptitle("{} {}".format(data_type, model_type))
gs0 = fig.add_gridspec(6, 2, hspace=1.0)
Expand Down Expand Up @@ -134,17 +137,16 @@ def plot_2d_summary(folder, data_type, model_type):
results_2d.plot_data_elevation(linewidth=0.3, ax=ax1);
results_2d.plot_elevation(linewidth=0.3, ax=ax1);


plt.show()
# plt.savefig('{}_{}.png'.format(data_type, model_type), dpi=300)
# plt.show()
plt.savefig('{}_{}.png'.format(data_type, model_type), dpi=300)

if __name__ == '__main__':
models = ['glacial', 'saline_clay', 'resistive_dolomites', 'resistive_basement', 'coastal_salt_water', 'ice_over_salt_water']

for model in models:
try:
# try:
plot_2d_summary("../../../Parallel_Inference/", "resolve", model)
except Exception as e:
print(model)
print(e)
pass
# except Exception as e:
# print(model)
# print(e)
# pass
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
75 changes: 75 additions & 0 deletions docs/_downloads/83471875085bd5964f72b6b955c92f62/test.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
"""
2D Posterior analysis of Resolve inference
------------------------------------------
All plotting in GeoBIPy can be carried out using the 3D inference class
"""

import matplotlib.pyplot as plt
import numpy as np
from geobipy import Model
from geobipy import Inference2D

def plot_2d_summary(folder, data_type, model_type):
#%%
# Inference for a line of inferences
# ++++++++++++++++++++++++++++++++++
#
# We can instantiate the inference handler by providing a path to the directory containing
# HDF5 files generated by GeoBIPy.
#
# The InfereceXD classes are low memory. They only read information from the HDF5 files
# as and when it is needed.
#
# The first time you use these classes to create plots, expect longer initial processing times.
# I precompute expensive properties and store them in the HDF5 files for later use.

from numpy.random import Generator
from numpy.random import PCG64DXSM
generator = PCG64DXSM(seed=0)
prng = Generator(generator)

#%%
results_2d = Inference2D.fromHdf('{}/{}/{}/0.0.h5'.format(folder, data_type, model_type), prng=prng)

kwargs = {
"log" : 10,
"cmap" : 'jet'
}

true_model = Model.create_synthetic_model(model_type)
true_model.mesh.y_edges = true_model.mesh.y_edges / 10.0

kwargs['vmin'] = np.log10(np.min(true_model.values))
kwargs['vmax'] = np.log10(np.max(true_model.values))

t = results_2d.inference_1d(index=7)

plt.figure()
t.model.plot_posteriors(edges_kwargs={
'transpose': True,
'trim': False},
values_kwargs={
'colorbar': False,
'flipY': True,
'xscale': 'log',
'credible_interval_kwargs': {
}})

tmp = t.model.values.posterior


plt.show(block=True)
# plt.savefig('{}_{}.png'.format(data_type, model_type), dpi=300)

if __name__ == '__main__':
models = ['glacial']#, 'saline_clay', 'resistive_dolomites', 'resistive_basement', 'coastal_salt_water', 'ice_over_salt_water']

for model in models:
# try:
plot_2d_summary("../../../Parallel_Inference/", "resolve", model)
# except Exception as e:
# print(model)
# print(e)
# pass
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -1074,7 +1074,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.1"
"version": "3.12.3"
}
},
"nbformat": 4,
Expand Down
Binary file modified docs/_images/sphx_glr_plot_StatArray_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_003.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_004.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_005.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_006.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_007.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_008.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_009.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_010.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_011.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_012.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_013.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_014.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_015.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_016.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_017.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_018.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_019.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_020.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_021.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_StatArray_022.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_distributions_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_frequency_dataset_001.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_frequency_dataset_002.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/_images/sphx_glr_plot_frequency_dataset_003.png
Binary file modified docs/_images/sphx_glr_plot_frequency_dataset_004.png
Binary file modified docs/_images/sphx_glr_plot_frequency_dataset_005.png
Binary file modified docs/_images/sphx_glr_plot_frequency_dataset_006.png
Binary file modified docs/_images/sphx_glr_plot_histogram_1d_001.png
Binary file modified docs/_images/sphx_glr_plot_histogram_1d_002.png
Binary file modified docs/_images/sphx_glr_plot_histogram_1d_003.png
Binary file modified docs/_images/sphx_glr_plot_histogram_1d_004.png
Binary file modified docs/_images/sphx_glr_plot_histogram_1d_005.png
Binary file modified docs/_images/sphx_glr_plot_histogram_1d_006.png
Binary file modified docs/_images/sphx_glr_plot_histogram_1d_thumb.png
Binary file modified docs/_images/sphx_glr_plot_histogram_2d_001.png
Binary file modified docs/_images/sphx_glr_plot_histogram_2d_002.png
Binary file modified docs/_images/sphx_glr_plot_histogram_2d_003.png
Binary file modified docs/_images/sphx_glr_plot_histogram_2d_004.png
Binary file modified docs/_images/sphx_glr_plot_histogram_2d_005.png
Binary file modified docs/_images/sphx_glr_plot_histogram_2d_006.png
Binary file modified docs/_images/sphx_glr_plot_histogram_2d_007.png
Binary file modified docs/_images/sphx_glr_plot_histogram_2d_008.png
Binary file modified docs/_images/sphx_glr_plot_histogram_2d_009.png
Binary file modified docs/_images/sphx_glr_plot_histogram_2d_010.png
Binary file modified docs/_images/sphx_glr_plot_histogram_2d_011.png
Binary file modified docs/_images/sphx_glr_plot_histogram_2d_012.png
Binary file modified docs/_images/sphx_glr_plot_histogram_2d_013.png
Binary file modified docs/_images/sphx_glr_plot_histogram_2d_014.png
Binary file modified docs/_images/sphx_glr_plot_histogram_2d_thumb.png
Binary file modified docs/_images/sphx_glr_plot_histogram_3d_001.png
Binary file modified docs/_images/sphx_glr_plot_histogram_3d_002.png
Binary file modified docs/_images/sphx_glr_plot_histogram_3d_003.png
Binary file modified docs/_images/sphx_glr_plot_histogram_3d_004.png
Binary file modified docs/_images/sphx_glr_plot_histogram_3d_005.png
Binary file modified docs/_images/sphx_glr_plot_histogram_3d_006.png
Binary file modified docs/_images/sphx_glr_plot_histogram_3d_007.png
Binary file modified docs/_images/sphx_glr_plot_histogram_3d_008.png
Binary file modified docs/_images/sphx_glr_plot_histogram_3d_009.png
Binary file modified docs/_images/sphx_glr_plot_histogram_3d_010.png
Binary file modified docs/_images/sphx_glr_plot_histogram_3d_thumb.png
Binary file modified docs/_images/sphx_glr_plot_inference_1d_resolve_001.png
Binary file modified docs/_images/sphx_glr_plot_inference_1d_resolve_002.png
Binary file modified docs/_images/sphx_glr_plot_inference_1d_skytem_001.png
Binary file modified docs/_images/sphx_glr_plot_inference_1d_skytem_002.png
Binary file modified docs/_images/sphx_glr_plot_inference_1d_tempest_001.png
Binary file modified docs/_images/sphx_glr_plot_inference_1d_tempest_002.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_resolve_001.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_resolve_002.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_resolve_003.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_resolve_004.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_resolve_005.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_resolve_006.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_resolve_thumb.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_skytem_001.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_skytem_002.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_skytem_003.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_skytem_004.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_skytem_005.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_skytem_006.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_skytem_thumb.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_tempest_001.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_tempest_002.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_tempest_003.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_tempest_004.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_tempest_005.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_tempest_006.png
Binary file modified docs/_images/sphx_glr_plot_inference_2d_tempest_thumb.png
Binary file modified docs/_images/sphx_glr_plot_model_1d_001.png
Binary file modified docs/_images/sphx_glr_plot_model_1d_002.png
Binary file modified docs/_images/sphx_glr_plot_model_1d_003.png
Binary file modified docs/_images/sphx_glr_plot_model_2d_001.png
Binary file modified docs/_images/sphx_glr_plot_model_2d_002.png
Binary file modified docs/_images/sphx_glr_plot_model_3d_001.png
Binary file modified docs/_images/sphx_glr_plot_model_3d_002.png
Binary file modified docs/_images/sphx_glr_plot_model_3d_003.png
Binary file modified docs/_images/sphx_glr_plot_model_3d_004.png
Binary file modified docs/_images/sphx_glr_plot_model_3d_005.png
Binary file modified docs/_images/sphx_glr_plot_pointcloud3d_001.png
Binary file modified docs/_images/sphx_glr_plot_pointcloud3d_002.png
Binary file modified docs/_images/sphx_glr_plot_pointcloud3d_003.png
Binary file modified docs/_images/sphx_glr_plot_pointcloud3d_004.png
Binary file modified docs/_images/sphx_glr_plot_pointcloud3d_005.png
Binary file modified docs/_images/sphx_glr_plot_pointcloud3d_thumb.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_001.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_002.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_003.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_004.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_005.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_006.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_007.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_008.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_009.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_010.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_011.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_012.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_013.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_014.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_015.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_1d_thumb.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_2d_001.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_2d_002.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_2d_003.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_2d_004.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_2d_005.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_2d_006.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_2d_007.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_2d_008.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_2d_009.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_2d_010.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_2d_011.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_2d_012.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_2d_013.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_2d_014.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_3d_001.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_3d_002.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_3d_003.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_3d_004.png
Binary file modified docs/_images/sphx_glr_plot_rectilinear_mesh_3d_005.png
Binary file modified docs/_images/sphx_glr_plot_resolve_datapoint_001.png
Binary file modified docs/_images/sphx_glr_plot_resolve_datapoint_002.png
Binary file modified docs/_images/sphx_glr_plot_resolve_datapoint_003.png
Binary file modified docs/_images/sphx_glr_plot_resolve_datapoint_004.png
Binary file modified docs/_images/sphx_glr_plot_skytem_datapoint_001.png
Binary file modified docs/_images/sphx_glr_plot_skytem_datapoint_002.png
Binary file modified docs/_images/sphx_glr_plot_skytem_datapoint_003.png
Binary file modified docs/_images/sphx_glr_plot_skytem_datapoint_004.png
Binary file modified docs/_images/sphx_glr_plot_skytem_datapoint_005.png
Binary file modified docs/_images/sphx_glr_plot_skytem_datapoint_006.png
Binary file modified docs/_images/sphx_glr_plot_skytem_dataset_001.png
Binary file modified docs/_images/sphx_glr_plot_skytem_dataset_002.png
Binary file modified docs/_images/sphx_glr_plot_skytem_dataset_003.png
Binary file modified docs/_images/sphx_glr_plot_skytem_dataset_004.png
Binary file modified docs/_images/sphx_glr_plot_skytem_dataset_005.png
Binary file modified docs/_images/sphx_glr_plot_tempest_datapoint_001.png
Binary file modified docs/_images/sphx_glr_plot_tempest_datapoint_002.png
Binary file modified docs/_images/sphx_glr_plot_tempest_datapoint_003.png
Binary file modified docs/_images/sphx_glr_plot_tempest_datapoint_004.png
Binary file modified docs/_images/sphx_glr_plot_tempest_dataset_001.png
Binary file modified docs/_images/sphx_glr_plot_tempest_dataset_002.png
Binary file modified docs/_images/sphx_glr_plot_tempest_dataset_003.png
Binary file modified docs/_images/sphx_glr_plot_tempest_dataset_004.png
Binary file modified docs/_images/sphx_glr_plot_tempest_dataset_005.png
Binary file added docs/_images/sphx_glr_test_thumb.png
23 changes: 11 additions & 12 deletions docs/_sources/content/getting_started/installation.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@ To run this code in parallel you will need both an MPI library and the python wr
MPI
^^^

If you are installing GeoBIPy on a parallel machine, I would think that you have access to prebuilt MPI libraries.
If you are on a local laptop, you will need to install one.
If you are installing GeoBIPy on a parallel machine, I would think that you have access to prebuilt MPI libraries.
If you are on a local laptop, you will need to install one.

mpi4py
^^^^^^

At this point, if you have an mpi4py module already installed, please remove it (you can check with "pip list").
If you started with a clean installation you should not have to worry about this.
To test whether a new install of mpi4py will see the mpi library you have, just type "which mpicc".
The path that you see should point to the implementation that you want mpi4py to link to.
Make sure you are about to install mpi4py to the correct python installation.
If you type 'which python' it should return the path to the correct python distribution.
At this point, if you have an mpi4py module already installed, please remove it (you can check with "pip list").
If you started with a clean installation you should not have to worry about this.
To test whether a new install of mpi4py will see the mpi library you have, just type "which mpicc".
The path that you see should point to the implementation that you want mpi4py to link to.
Make sure you are about to install mpi4py to the correct python installation.
If you type 'which python' it should return the path to the correct python distribution.
If you are using environments, make sure you have activated the correct one.

Next, use "pip install mpi4py --no-cache-dir". This last option is very important, without it, pip might install its own MPI library called MPICH2.
Next, use "env MPICC=<Your mpicc compiler> python -m pip install mpi4py". This last option is very important, without it, pip might install its own MPI library called MPICH2.
I would try to avoid this because if you need to install the HDF5 library you will need know which directories to link to (see `Installing parallel HDF5 and h5py`_).

At the end of the day, h5py needs to communicate with both the correct HDF5 library and mpi4py, and both of those need to communicate with the same MPI library.
Expand Down Expand Up @@ -92,14 +92,14 @@ This will install h5py and compile the source.

Installing the time domain forward modeller
===========================================
Ross Brodie at Geoscience Australia has written a great forward modeller, gatdaem1D, in C++ with a python interface.
Ross Brodie at Geoscience Australia has written a great forward modeller, gatdaem1D, in C++ with a python interface.
You can obtain that code here at the `GA repository`_

.. _`GA repository`: https://github.com/GeoscienceAustralia/ga-aem

Go ahead and "git clone" that repository.

These instructions only describe how to install Ross' forward modeller, but it is part of a larger code base for inversion.
These instructions only describe how to install Ross' forward modeller, but it is part of a larger code base for inversion.
If you wish to install his entire package, please follow his instructions.

Prerequisites
Expand Down Expand Up @@ -192,4 +192,3 @@ Type,
pip install .
You should now have access to the time domain forward modeller within geobipy.

24 changes: 12 additions & 12 deletions docs/_sources/examples/Data/plot_frequency_dataset.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -457,31 +457,31 @@ A summary will now show the properties of the line.
FdemData
x:
| Name: Easting (m) 0x174e7e4d0
| Name: Easting (m) 0x171f2ff50
| Shape: (6710,)
| Values: [586852.29 586852.23 586852.17 ... 586123.57 586123.2 586122.82]
| Min: 586122.82
| Max: 586852.29
| has_posterior: False
y:
| Name: Northing (m) 0x174e7ecd0
| Name: Northing (m) 0x171f2fe50
| Shape: (6710,)
| Values: [4639119.38 4639122.68 4639125.98 ... 4661765.26 4661768.84 4661772.42]
| Min: 4639119.38
| Max: 4661772.42
| has_posterior: False
z:
| Name: Height (m) 0x174e7e150
| Name: Height (m) 0x171f2f950
| Shape: (6710,)
| Values: [36.115 36.498 36.835 ... 27.799 27.704 27.601]
| Min: 23.830000000000002
| Max: 50.567
| has_posterior: False
elevation:
| Name: Elevation (m) 0x174e7e050
| Name: Elevation (m) 0x171f2f9d0
| Shape: (6710,)
| Values: [1246.84 1246.71 1246.61 ... 1337.94 1337.96 1338.02]
| Min: 1213.18
Expand All @@ -493,47 +493,47 @@ A summary will now show the properties of the line.
| In_Phase 129550.0, Quadrature 380.0, Quadrature 1776.0, Quadrature 3345.0, Quadrature 8171.0,
| Quadrature 41020.0, Quadrature 129550.0
data:
| Name: Data (ppm) 0x174f4d350
| Name: Data (ppm) 0x171dd6c50
| Shape: (80520,)
| Values: [145.3 435.8 260.6 ... 749.2 976.5 928.3]
| Min: 37.7
| Max: 3726.9
| has_posterior: False
predicted data:
| Name: Predicted Data (ppm) 0x174f4d350
| Name: Predicted Data (ppm) 0x1744559d0
| Shape: (80520,)
| Values: [0. 0. 0. ... 0. 0. 0.]
| Min: 0.0
| Max: 0.0
| has_posterior: False
std:
| Name: std (ppm) 0x174f4d350
| Name: std (ppm) 0x1744559d0
| Shape: (80520,)
| Values: [1.453 4.358 2.606 ... 7.492 9.765 9.283]
| Min: 0.37700000000000006
| Max: 37.269
| has_posterior: False
line number:
| Name: Line number 0x174e7d250
| Name: Line number 0x171f2fb50
| Shape: (6710,)
| Values: [30010. 30010. 30010. ... 30010. 30010. 30010.]
| Min: 30010.0
| Max: 30010.0
| has_posterior: False
fiducial:
| Name: Fiducial 0x174e7da50
| Name: Fiducial 0x171f2fbd0
| Shape: (6710,)
| Values: [30000 30000 30000 ... 30670 30670 30670]
| Min: 30000
| Max: 30670
| has_posterior: False
relative error:
| Name: Relative error (%) 0x174e7e7d0
| Name: Relative error (%) 0x171f2eb50
| Shape: (6710, 1)
| Values: [[0.01]
| [0.01]
Expand All @@ -547,7 +547,7 @@ A summary will now show the properties of the line.
| has_posterior: False
additive error:
| Name: Additive error (ppm) 0x174e7e750
| Name: Additive error (ppm) 0x171f2ebd0
| Shape: (6710, 1)
| Values: [[0.]
| [0.]
Expand Down Expand Up @@ -714,7 +714,7 @@ See the Resolve.stm files.

.. rst-class:: sphx-glr-timing

**Total running time of the script:** (0 minutes 2.948 seconds)
**Total running time of the script:** (0 minutes 3.419 seconds)


.. _sphx_glr_download_examples_Data_plot_frequency_dataset.py:
Expand Down
Loading

0 comments on commit c624dbf

Please sign in to comment.