Skip to content

Commit 13bb732

Browse files
author
Lachlan Grose
committed
Merge branch 'master' into intrusions
2 parents cf53f77 + 2e2d1c6 commit 13bb732

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

.github/workflows/windows_CI.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Installing dependencies
1919
shell: bash -l {0}
2020
run: |
21-
conda install -c conda-forge cython numpy scipy scikit-image scikit-learn pyamg flake8 pytest networkx osqp
21+
conda install -c conda-forge cython numpy scipy scikit-image scikit-learn pyamg flake8 pytest networkx osqp numba statsmodels scikit-fmm
2222
- name: Checking formatting of code
2323
shell: bash -l {0}
2424
run: |

LoopStructural/interpolators/_geological_interpolator.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ def set_value_constraints(self, points):
8686

8787
self.data["value"] = points
8888
self.n_i = points.shape[0]
89+
self.up_to_date = False
8990

9091
def set_gradient_constraints(self, points):
9192
"""
@@ -100,6 +101,8 @@ def set_gradient_constraints(self, points):
100101
"""
101102
self.n_g = points.shape[0]
102103
self.data["gradient"] = points
104+
self.up_to_date = False
105+
103106

104107
def set_normal_constraints(self, points):
105108
"""
@@ -114,6 +117,8 @@ def set_normal_constraints(self, points):
114117
"""
115118
self.n_n = points.shape[0]
116119
self.data["normal"] = points
120+
self.up_to_date = False
121+
117122

118123
def set_tangent_constraints(self, points):
119124
"""
@@ -127,12 +132,17 @@ def set_tangent_constraints(self, points):
127132
128133
"""
129134
self.data["tangent"] = points
135+
self.up_to_date = False
136+
130137

131138
def set_interface_constraints(self, points):
132139
self.data["interface"] = points
140+
self.up_to_date = False
141+
133142

134143
def set_inequality_constraints(self, points):
135144
self.data["inequality"] = points
145+
self.up_to_date = False
136146

137147
def get_value_constraints(self):
138148
"""

LoopStructural/interpolators/supports/_3d_base_structured.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,6 @@ def position_to_cell_index(self, pos):
174174
i,j,k indexes of the cell that the point is in
175175
"""
176176

177-
pos = self.rotate(pos)
178177
pos = self.check_position(pos)
179178

180179
ix = pos[:, 0] - self.origin[None, 0]
@@ -189,7 +188,6 @@ def position_to_cell_global_index(self, pos):
189188
ix, iy, iz = self.position_to_cell_index(pos)
190189

191190
def inside(self, pos):
192-
pos = self.rotate(pos)
193191
# check whether point is inside box
194192
inside = np.ones(pos.shape[0]).astype(bool)
195193
for i in range(3):

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@
4040
'scikit-image',
4141
'scikit-learn',
4242
'tqdm',
43+
'numba',
44+
'geostatspy',
45+
'statsmodels',
46+
'scikit-fmm'
4347
],
4448
description="Open source 3D structural geology modelling",
4549
long_description=codecs.open("README.md", "r", "utf-8").read(),

0 commit comments

Comments
 (0)