Skip to content

Commit 6fb59e0

Browse files
authored
Merge pull request #43 from Loop3D/conda_build
Conda build
2 parents cab0066 + 550c7b0 commit 6fb59e0

File tree

3 files changed

+23
-21
lines changed

3 files changed

+23
-21
lines changed

LoopStructural/visualisation/model_visualisation.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
logger.error("Please install lavavu: pip install lavavu")
1414
import numpy as np
1515
from skimage.measure import marching_cubes_lewiner as marching_cubes
16-
16+
from LoopStructural.modelling.features import GeologicalFeature
1717
from LoopStructural.utils.helper import create_surface, get_vectors, create_box
1818

1919
# adapted/copied from pyvista for sphinx scraper
@@ -146,7 +146,7 @@ def add_section(self, geological_feature=None, axis='x', value=None, **kwargs):
146146
-------
147147
148148
"""
149-
149+
print('aa')
150150
if axis == 'x':
151151
tri, yy, zz = create_surface(self.bounding_box[:, [1, 2]], self.nsteps[[1, 2]])
152152
xx = np.zeros(zz.shape)
@@ -199,9 +199,9 @@ def add_section(self, geological_feature=None, axis='x', value=None, **kwargs):
199199
logger.info("Colouring section with %s min: %f, max: %f" % (
200200
geological_feature.name, geological_feature.min(), geological_feature.max()))
201201
surf.colourmap(cmap, range=[geological_feature.min(), geological_feature.max()])
202-
if geological_feature == 'model':
202+
if geological_feature == 'model' and self.model is not None:
203203
name = kwargs.get('name','model_section')
204-
surf.values(model.evaluate_model(points),
204+
surf.values(self.model.evaluate_model(points,scale=True),
205205
name)
206206
surf["colourby"] = name
207207
cmap = lavavu.cubehelix(100)

conda/meta.yaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% set name = "loopstructural" %}
2-
{% set version = "1.0.4" %}
2+
{% set version = "1.0.5" %}
33

44
package:
55
name: "{{ name|lower }}"
@@ -14,20 +14,22 @@ build:
1414
script: "{{ PYTHON }} -m pip install ."
1515

1616
requirements:
17+
build:
18+
- cython
1719
host:
1820
- pip
1921
- python
2022
- cython
2123
- setuptools
2224
- numpy
23-
run:
24-
- Cython
25-
- numpy
26-
- pandas
27-
- scipy
28-
- matplotlib
29-
- scikit-image
30-
# - scikit-learn
25+
# run:
26+
# - Cython
27+
# - numpy
28+
# - pandas
29+
# - scipy
30+
# - matplotlib
31+
# - scikit-image
32+
# - scikit-learn
3133
# test:
3234
# imports:
3335
# - LoopStructural

setup.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ def get_version(rel_path):
2020
setup(
2121
name="LoopStructural",
2222
install_requires=[
23-
'Cython',
24-
'numpy',
25-
'pandas',
26-
'scipy',
27-
'matplotlib',
28-
# 'lavavu',
29-
'scikit-image',
30-
'scikit-learn'
23+
# 'Cython',
24+
# 'numpy',
25+
# 'pandas',
26+
# 'scipy',
27+
# 'matplotlib',
28+
# # 'lavavu',
29+
# 'scikit-image',
30+
# 'scikit-learn'
3131
],
3232
version=get_version("LoopStructural/__init__.py"),
3333
packages=find_packages(),

0 commit comments

Comments
 (0)