Skip to content

Commit 47e2304

Browse files
committed
(BUGFIX) added orthogonality back to structural
frames
1 parent c1c2a9d commit 47e2304

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LABEL maintainer="lachlan.grose@monash.edu"
66
RUN apt-get update -qq && \
77
DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
88
gcc \
9+
g++ \
910
libc-dev
1011

1112
RUN conda install -c conda-forge pip scikit-learn cython numpy==1.20.1 pandas scipy pymc3 jupyter pyamg -y
@@ -44,4 +45,4 @@ RUN mkdir LoopStructural
4445
CMD ["jupyter", "notebook", "--ip='0.0.0.0'", "--NotebookApp.token=''", "--no-browser" ]
4546

4647
EXPOSE 8050
47-
EXPOSE 8080:8090
48+
EXPOSE 8080:8090

LoopStructural/modelling/core/geological_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1171,8 +1171,8 @@ def create_and_add_fault(self,
11711171
vertical_radius=fault_vectical_radius
11721172
)
11731173
if fault_influence == None or fault_extent == None or fault_vectical_radius == None:
1174-
fault_frame_builder.origin = self.origin
1175-
fault_frame_builder.maximum = self.maximum
1174+
fault_frame_builder.origin = self.bounding_box[0,:]
1175+
fault_frame_builder.maximum = self.bounding_box[1,:]
11761176
fault_frame_builder.set_mesh_geometry(kwargs.get('fault_buffer',0.1))
11771177
# fault_frame_builder.add_data_from_data_frame(fault_frame_data)
11781178
# check if this fault overprint any existing faults exist in the stack

LoopStructural/modelling/fault/fault_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def __init__(self,interpolator=None,interpolators=None,model=None,fault_bounding
2828
self.maximum_maximum = self.model.bounding_box[1,:] + buffer*(self.model.bounding_box[1,:]-self.model.bounding_box[0,:])
2929

3030
def update_geometry(self,points):
31-
31+
3232
self.origin = np.nanmin(np.array([np.min(points,axis=0),self.origin]),axis=0)
3333
self.maximum = np.nanmax(np.array([np.max(points,axis=0),self.maximum]),axis=0)
3434
self.origin[self.origin<self.minimum_origin] = self.minimum_origin[self.origin<self.minimum_origin]

LoopStructural/modelling/features/geological_feature_builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ def build(self, fold=None, fold_weights={}, data_region=None, **kwargs):
407407
if 'cgw' not in kwargs:
408408
# try adding very small cg
409409
kwargs['cgw'] = 0.0
410+
self.install_gradient_constraint()
410411
self.interpolator.setup_interpolator(**kwargs)
411412
self.interpolator.solve_system(**kwargs)
412413
self._up_to_date = True

LoopStructural/visualisation/model_visualisation.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ def add_section(self, geological_feature=None, axis='x', value=None, **kwargs):
165165
if value is None:
166166
value = np.nanmean(self.bounding_box[:, 2])
167167
zz[:] = value
168+
168169
name = kwargs.get('name', geological_feature.name)
169170
name = '{}_section_at_{}_of_{}'.format(axis,value,name)
170171
colour = kwargs.get('colour', 'red')

0 commit comments

Comments
 (0)