Skip to content

Commit b5b1d75

Browse files
committed
docs: fixing code block
1 parent 0092801 commit b5b1d75

3 files changed

Lines changed: 10 additions & 1 deletion

File tree

docs/source/user_guide/debugging.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ Interpolator is taking a long time
4444
- How many faults are associated with the feature? :code:`len(feature.faults)`, you can remove the faults by setting this to an empty list
4545

4646
.. code-block:
47+
4748
faults = feature.faults
4849
feature.faults = []
4950
feature.update()
@@ -74,6 +75,7 @@ No displacement
7475
- Has the fault frame interpolated correctly? Coordinates 0 and 1 should both have values.
7576

7677
.. code-block:
78+
7779
view.add_scalar_field(fault[0])
7880
view.add_scalar_field(fault[1])
7981
view.add_scalar_field(fault[2])
@@ -83,11 +85,13 @@ No displacement
8385
- Has the fault been added to the feature being faulted?
8486

8587
.. code-block:
88+
8689
print([f.name for f in faulted_feature.faults])
8790
8891
- Is the fault displacement vector correct? Add the vector field to the visualisation
8992

9093
.. code-block:
94+
9195
view = LavaVuModelViewer(model)
9296
view.add_vector_field(model['fault'][1],locations=model.regular_grid()[::200]) #random 200 locations
9397
view.add_isosurface(model['fault'][0],0)

docs/source/user_guide/interpolation_options.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ Iterative solvers:
169169
* lsqr - this solver uses the rectangular matrix directly, therefore does not require computing A.T A and A.T B. Uses scipy
170170

171171
.. code-block:
172+
172173
model.create_and_add_foliation('my_foliation',solver='lu')
173174
model.create_and_add_foliation('my_foliation',solver='chol')
174175
model.create_and_add_foliation('my_foliation',solver='cg')
@@ -185,6 +186,7 @@ You can also pass a function that solves
185186
to LoopStructural if you want to use another solver by using the `external` keyword .
186187

187188
.. code-block:
189+
188190
def mysolver(A,B):
189191
from scipy.sparse.linalg import gmres
190192
x = gmres(A,B)
@@ -194,6 +196,7 @@ to LoopStructural if you want to use another solver by using the `external` keyw
194196
The solution to the least squares problem will be stored in the interpolator object and can be easily accessed:
195197
196198
.. code-block:
199+
197200
model.create_and_add_foliation('my_foliation',solver='pyamg')
198201
pyamg_solution = model['my_foliation'].interpolator.c[model['my_foliation'].interpolator.region]
199202
@@ -211,6 +214,7 @@ In the following example the Claudius test dataset is used to test the solver ti
211214
The same dataset is used for varying number of elements from 1,000 to 100,000 at intervals of 5,000 on a computer running ubuntu with 32gb of ram and a 4 core i7 cpu.
212215

213216
.. code-block::
217+
214218
from LoopStructural import GeologicalModel
215219
from LoopStructural.datasets import load_claudius
216220
import time
@@ -255,6 +259,7 @@ Data Supported Interpolation
255259
LoopStructural provides a wrapper to the SurfE c++ library developed Natural Resources Canada (Geological Survey of Canada) by Michael Hillier, Eric de Kemp, and Ernst Schetselaar for the purposes of 3D structural geological modelling particularly in sparse data environments.
256260
SurfE can be used for interpolating a GeologicalFeature in a GeologicalModel by specifying the parameter
257261
.. code-block::
262+
258263
interpolatortype = 'surfe'
259264
260265
Additional parameters can be specified to the interpolator including:

examples/1_basic/plot_4_using_stratigraphic_column.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,5 +60,5 @@
6060
model.set_stratigraphic_column(stratigraphic_column)
6161

6262
viewer = Loop3DView(model)
63-
viewer.plot_block_model()
63+
viewer.plot_block_model(cmap='tab20')
6464
viewer.display()

0 commit comments

Comments
 (0)