File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change
1
+ """
2
+ GemPy modules package.
3
+ """
4
+
5
+ from . import json_io
6
+ from . import custom_implicit_functions
7
+ from . import data_manipulation
8
+ from . import grids
9
+ from . import advance_pile
10
+
11
+ __all__ = [
12
+ 'json_io' ,
13
+ 'custom_implicit_functions' ,
14
+ 'data_manipulation' ,
15
+ 'grids' ,
16
+ 'advance_pile'
17
+ ]
Original file line number Diff line number Diff line change 8
8
import numpy as np
9
9
10
10
from .schema import SurfacePoint , Orientation , GemPyModelJson
11
+ from gempy_engine .core .data .stack_relation_type import StackRelationType
11
12
12
13
13
14
class JsonIO :
@@ -75,9 +76,9 @@ def load_model_from_json(file_path: str):
75
76
interpolation_options = interpolation_options
76
77
)
77
78
78
- # Map series to surfaces
79
- for series in data ['series' ]:
80
- map_stack_to_surfaces (model , { series [ 'name' ]: series [ 'surfaces' ]} )
79
+ # Map series to surfaces with structural relations
80
+ mapping_object = { series [ 'name' ]: series [ 'surfaces' ] for series in data ['series' ]}
81
+ map_stack_to_surfaces (model , mapping_object , series_data = data [ ' series' ] )
81
82
82
83
return model
83
84
You can’t perform that action at this time.
0 commit comments