Skip to content

Commit f059046

Browse files
committed
- [DOC/WIP] Fixing the transform
1 parent d709820 commit f059046

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

gempy_plugins/kriging/kriging.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626

2727

2828
class Domain:
29-
def __init__(self, model_solutions: gp.data.Solutions, domain: Optional[Sequence] = None, data=None, set_mean=None):
29+
def __init__(self, model_solutions: gp.data.Solutions, transform: gp.data.Transform, domain: Optional[Sequence] = None, data=None, set_mean=None):
3030

3131
# set model from a gempy solution
3232
# TODO: Check if I actually need all this or if its easier to just get grid and lith of the solution
@@ -38,7 +38,7 @@ def __init__(self, model_solutions: gp.data.Solutions, domain: Optional[Sequence
3838
domain = np.unique(self.sol.lith_block)
3939
self.set_domain(
4040
domain=domain,
41-
grid_values=model_solutions.octrees_output[-1].grid_centers.regular_grid.original_values
41+
grid_values=transform.apply_inverse(model_solutions.octrees_output[-1].grid_centers.regular_grid.original_values)
4242
)
4343

4444
# set data, default is None

0 commit comments

Comments
 (0)