Skip to content

Commit 0386163

Browse files
committed
Additional fixes to get defaults right
1 parent 84d3332 commit 0386163

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

examples/tutorials/z_other_tutorials/json_io/05c_minimal_comparison.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"y": 0.0,
6161
"z": -20.0,
6262
"id": 0,
63-
"nugget": 0.000001 # Default nugget value
63+
"nugget": 0.0 # Default nugget value
6464
}
6565
],
6666
"orientations": [
@@ -86,8 +86,15 @@
8686
"c_o": 5.0
8787
},
8888
"mesh_extraction": True,
89-
"number_octree_levels": 4
90-
}
89+
"number_octree_levels": 2
90+
},
91+
"series": [
92+
{
93+
"name": "default_formations",
94+
"surfaces": ["surface1"],
95+
"structural_relation": "ERODE"
96+
}
97+
]
9198
}
9299

93100
# Save the JSON model

gempy/modules/json_io/json_operations.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ def load_model_from_json(file_path: str):
150150
)
151151

152152
# Calculate default range based on model extent
153-
default_range = JsonIO._calculate_default_range(grid_settings['regular_grid_extent'])
153+
# default_range = JsonIO._calculate_default_range(grid_settings['regular_grid_extent'])
154+
# set as fixed value
155+
default_range = 1.7 # Match standard GemPy default
154156

155157
# Create interpolation options with defaults if not provided
156158
interpolation_options = InterpolationOptions(

0 commit comments

Comments
 (0)