Skip to content
Merged

Dev #52

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
9052442
(DEV) change model to be a collection
lachlangrose Jan 22, 2021
0ff1eb4
(DEV) updated setup
lachlangrose Jan 22, 2021
2b6b4e8
(DEV) testing ideas for how to implement builder
lachlangrose Jan 22, 2021
c7fcc2a
(DEV) adding class for regions
lachlangrose Jan 22, 2021
e6841f1
(DEV) test can add feature to model without
lachlangrose Jan 22, 2021
50241c2
(DEV) updating faults to evaluate on demand
lachlangrose Jan 24, 2021
9c42b79
(FEATURE) changing geological model class to
lachlangrose Jan 28, 2021
3467d45
(FEATURE) creating stratigraphic column class
lachlangrose Jan 28, 2021
0bc8201
(FEATURE) working on fault geometry params
lachlangrose Jan 28, 2021
afe3093
(FEATURE) adding fault builder to geomodel
lachlangrose Jan 28, 2021
14379d6
(DEV) m2l test case
lachlangrose Feb 1, 2021
5f14488
(DEV) adding fault geometry arguments
lachlangrose Feb 1, 2021
953dfd9
(DEV) push for testing
lachlangrose Feb 1, 2021
f130d3f
(TESTS) added test for base support
lachlangrose Feb 4, 2021
f6dddd8
(BUG) remove skimage warning for marching cubes
lachlangrose Feb 4, 2021
a07cd7f
(FEATURE) using fault extent to define interpolation geometry
lachlangrose Feb 4, 2021
a688f82
(TESTS) trying to profile/test different solvers
lachlangrose Feb 4, 2021
3eecaed
(BUG) moved surfe warning to only occur if surfe is used
lachlangrose Feb 4, 2021
fee5d19
(BUG) no solution now tells which scalar field
lachlangrose Feb 4, 2021
92effb5
(FEATURE) adding progress bar
lachlangrose Feb 5, 2021
f7628ad
(BUG) fixed bug where args for frame 1 were missed
lachlangrose Feb 5, 2021
70b5163
(DOC) adding guide for faults
lachlangrose Feb 5, 2021
8f512c8
(DOCS) adding fault param description
lachlangrose Feb 5, 2021
f4d7474
(BUG) fixing fault builder for infinite faults
lachlangrose Feb 5, 2021
f7d348a
(DEV) some bug fixes for fault geometry change
lachlangrose Feb 8, 2021
6203028
(DEV) upgrading version, some fixes for sections
lachlangrose Feb 8, 2021
3089324
Merge branch 'dev' of https://github.com/Loop3D/LoopStructural into dev
lachlangrose Feb 8, 2021
5ae2f46
(BUG) updating for flake8
lachlangrose Feb 9, 2021
82631a1
Merge branch 'dev' of github.com:Loop3D/LoopStructural into dev
lachlangrose Feb 9, 2021
106f583
updating test
lachlangrose Feb 9, 2021
0c8fceb
Merge branch 'master' into dev
lachlangrose Feb 9, 2021
d740b2b
Update change_list.md
lachlangrose Feb 9, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ examples/*/*.png
docs/source/test/*
examples/*.png
dev/scalar_field
dev/unconf
dev/unconf
2 changes: 1 addition & 1 deletion LoopStructural/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
ch.setFormatter(formatter)
ch.setLevel(logging.WARNING)
loggers = {}
__version__ = '1.0.5'
__version__ = '1.0.6-dev'
from .modelling.core.geological_model import GeologicalModel
from .visualisation.model_visualisation import LavaVuModelViewer
from .visualisation.map_viewer import MapView
Expand Down
4 changes: 2 additions & 2 deletions LoopStructural/interpolators/base_structured_3d_support.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ def maximum(self,maximum):
"""
update the number of steps to fit new boundary
"""
maximum = np.array(maximum)
maximum = np.array(maximum,dtype=float)
length = maximum-self.origin
length /= self.step_vector
self.nsteps = np.ceil(length).astype(int)
self._nsteps = np.ceil(length).astype(int)
@property
def n_nodes(self):
return np.product(self.nsteps)
Expand Down
7 changes: 5 additions & 2 deletions LoopStructural/interpolators/discrete_interpolator.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,9 @@ def add_constraints_to_least_squares(self, A, B, idc, name='undefined'):
A = np.array(A)
B = np.array(B)
idc = np.array(idc)

nr = A.shape[0]
#logger.debug('Adding constraints to interpolator: {} {} {}'.format(A.shape[0]))
# print(A.shape,B.shape,idc.shape)
if A.shape != idc.shape:
return

Expand Down Expand Up @@ -491,6 +492,8 @@ def _solve(self, solver='cg', **kwargs):
True if the interpolation is run

"""
logger.info("Solving interpolation for {}".format(self.propertyname))

self.c = np.zeros(self.support.n_nodes)
self.c[:] = np.nan
damp = True
Expand Down Expand Up @@ -531,7 +534,7 @@ def _solve(self, solver='cg', **kwargs):
logger.warning("Solver not run, no scalar field")
# if solution is all 0, probably didn't work
if np.all(self.c[self.region] == 0):
logger.warning("No solution, scalar field 0. Add more data.")
logger.warning("No solution, {} scalar field 0. Add more data.".format(self.propertyname))

def update(self):
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ def _setup_interpolator(self, **kwargs):
-------

"""

for key in kwargs:
self.up_to_date = False
if 'regularisation' in kwargs:
Expand Down
223 changes: 125 additions & 98 deletions LoopStructural/modelling/core/geological_model.py

Large diffs are not rendered by default.

Loading