Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Loop3D/LoopStructural
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlangrose committed Feb 20, 2024
2 parents 4a4bf92 + 6d38671 commit 8d9e8fd
Show file tree
Hide file tree
Showing 54 changed files with 214 additions and 441 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,11 @@ jobs:
- name: Installing dependencies
shell: bash -l {0}
run: |
conda install -c conda-forge cython numpy scipy scikit-image scikit-learn pyamg pytest networkx osqp matplotlib -y
conda install -c conda-forge numpy scipy scikit-image scikit-learn pytest networkx osqp matplotlib -y
- name: Building and install
shell: bash -l {0}
run: |
python setup.py install build_ext --inplace
pip install .
pip install . --user
- name: pytest
shell: bash -l {0}
run: |
Expand Down
16 changes: 0 additions & 16 deletions LoopStructural/analysis/__init__.py

This file was deleted.

116 changes: 0 additions & 116 deletions LoopStructural/analysis/_fault_displacement.py

This file was deleted.

65 changes: 0 additions & 65 deletions LoopStructural/analysis/_fault_intersection.py

This file was deleted.

65 changes: 0 additions & 65 deletions LoopStructural/analysis/_plane_fit.py

This file was deleted.

38 changes: 0 additions & 38 deletions LoopStructural/analysis/_topology.py

This file was deleted.

2 changes: 1 addition & 1 deletion LoopStructural/api/_interpolate.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
InterpolatorFactory,
InterpolatorType,
)
from LoopStructural.utils import BoundingBox
from LoopStructural.datatypes import BoundingBox
from LoopStructural.utils import getLogger

logger = getLogger(__name__)
Expand Down
3 changes: 1 addition & 2 deletions LoopStructural/api/_surface.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
from skimage.measure import marching_cubes_lewiner as marching_cubes

from LoopStructural.interpolators import GeologicalInterpolator
from LoopStructural.utils import BoundingBox
from LoopStructural.datatypes import Surface
from LoopStructural.datatypes import Surface, BoundingBox

surface_list = dict[str, tuple[npt.ArrayLike, npt.ArrayLike, npt.ArrayLike, npt.ArrayLike]]

Expand Down
1 change: 0 additions & 1 deletion LoopStructural/datasets/_example_models.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

vis = True
try:
pass
Expand Down
1 change: 1 addition & 0 deletions LoopStructural/datatypes/_bounding_box.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,5 +190,6 @@ def regular_grid(self, nsteps=None, shuffle=False, order="C"):
[xx.flatten(order=order), yy.flatten(order=order), zz.flatten(order=order)]
).T
if shuffle:
# logger.info("Shuffling points")
rng.shuffle(locs)
return locs
1 change: 1 addition & 0 deletions LoopStructural/export/file_formats.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Exported file formats
"""

from enum import Enum


Expand Down
9 changes: 5 additions & 4 deletions LoopStructural/export/isosurface.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# import numpy as np
# from skimage.measure import marching_cubes


# def extract_isosurface(geologicalfeature, model, isovalue):
# xyz=model.regular_grid(shuffle=False)
# xyz = model.regular_grid(shuffle=False)
# vals = model.evaluate_model(xyz, scale=False)

# verts, faces, normals, values = marching_cubes(
# vals.reshape(model.nsteps, order='C'),
# isovalue,
# spacing=model.step_vector)
# vals.reshape(model.nsteps, order='C'), isovalue, spacing=model.step_vector
# )
# # verts += np.array([self.bounding_box[0, 0], self.bounding_box[0, 1], self.bounding_box[1, 2]])
# self.model.rescale(verts)
# return verts, faces
Loading

0 comments on commit 8d9e8fd

Please sign in to comment.