gp.compute_model(model,compute_mesh=True) doesn't work? #867
Replies: 2 comments 3 replies
-
The full error log is here: ValueError Traceback (most recent call last) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\aesara\graph\op.py:541, in Op.make_py_thunk..rval(p, i, o, n, params) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\aesara\tensor\slinalg.py:390, in Solve.perform(self, node, inputs, outputs) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\scipy\linalg_basic.py:151, in solve(a, b, lower, overwrite_a, overwrite_b, check_finite, assume_a, transposed) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\scipy_lib_util.py:306, in _asarray_validated(a, check_finite, sparse_ok, objects_ok, mask_ok, as_inexact) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\numpy\lib\function_base.py:630, in asarray_chkfinite(a, dtype, order) ValueError: array must not contain infs or NaNs During handling of the above exception, another exception occurred: InnerFunctionError Traceback (most recent call last) File scan_perform.pyx:420, in aesara.scan.scan_perform.perform() InnerFunctionError: (ValueError('array must not contain infs or NaNs'), <traceback object at 0x000002C16717C9C0>) During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\aesara\scan\op.py:1660, in Scan.make_thunk..rval(p, i, o, n, allow_gc) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\aesara\scan\op.py:1627, in Scan.make_thunk..p(node, inputs, outputs) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\aesara\link\utils.py:533, in raise_with_op(fgraph, node, thunk, exc_info, storage_map) File scan_perform.pyx:418, in aesara.scan.scan_perform.perform() File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\aesara\graph\op.py:541, in Op.make_py_thunk..rval(p, i, o, n, params) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\aesara\tensor\slinalg.py:390, in Solve.perform(self, node, inputs, outputs) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\scipy\linalg_basic.py:151, in solve(a, b, lower, overwrite_a, overwrite_b, check_finite, assume_a, transposed) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\scipy_lib_util.py:306, in _asarray_validated(a, check_finite, sparse_ok, objects_ok, mask_ok, as_inexact) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\numpy\lib\function_base.py:630, in asarray_chkfinite(a, dtype, order) ValueError: array must not contain infs or NaNs Backtrace when the node is created (use Aesara flag traceback__limit=N to make it longer): Debug print of the apply node: HINT: Use the Aesara flag During handling of the above exception, another exception occurred: ValueError Traceback (most recent call last) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\gempy\gempy_api.py:291, in compute_model(model, output, at, compute_mesh, reset_weights, reset_scalar, reset_block, sort_surfaces, debug, set_solutions, **kwargs) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\aesara\compile\function\types.py:983, in Function.call(self, *args, **kwargs) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\aesara\link\utils.py:533, in raise_with_op(fgraph, node, thunk, exc_info, storage_map) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\aesara\compile\function\types.py:970, in Function.call(self, *args, **kwargs) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\aesara\scan\op.py:1660, in Scan.make_thunk..rval(p, i, o, n, allow_gc) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\aesara\scan\op.py:1627, in Scan.make_thunk..p(node, inputs, outputs) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\aesara\link\utils.py:533, in raise_with_op(fgraph, node, thunk, exc_info, storage_map) File scan_perform.pyx:418, in aesara.scan.scan_perform.perform() File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\aesara\graph\op.py:541, in Op.make_py_thunk..rval(p, i, o, n, params) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\aesara\tensor\slinalg.py:390, in Solve.perform(self, node, inputs, outputs) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\scipy\linalg_basic.py:151, in solve(a, b, lower, overwrite_a, overwrite_b, check_finite, assume_a, transposed) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\scipy_lib_util.py:306, in _asarray_validated(a, check_finite, sparse_ok, objects_ok, mask_ok, as_inexact) File C:\Users\anaconda3\envs\gempy_1\lib\site-packages\numpy\lib\function_base.py:630, in asarray_chkfinite(a, dtype, order) ValueError: array must not contain infs or NaNs Backtrace when the node is created (use Aesara flag traceback__limit=N to make it longer): Debug print of the apply node: HINT: Use the Aesara flag Backtrace when the node is created (use Aesara flag traceback__limit=N to make it longer): Debug print of the apply node: Inner graphs: for{cpu,Looping}.0 [id A] <TensorType(float64, (?, ?, ?, ?))>
for{cpu,Looping}.1 [id A] <TensorType(float64, (?, ?))>
for{cpu,Looping}.2 [id A] <TensorType(float64, (?, ?, ?))>
for{cpu,Looping}.3 [id A] <TensorType(float64, (?, ?, ?))>
for{cpu,Looping}.4 [id A] <TensorType(bool, (?, ?, ?))>
for{cpu,Looping}.5 [id A] <TensorType(bool, (?, ?, ?))>
for{cpu,Looping}.6 [id A] <TensorType(float64, (?, ?, ?, ?))>
for{cpu,Looping}.7 [id A] <TensorType(int64, (?,))>
Storage map footprint:
|
Beta Was this translation helpful? Give feedback.
-
Yes, each layer needs at least 2 points and 1 orientation to compute in this gempy version. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have been trying to create layer meshes on some data and when I have compute_mesh = True I get the error:
How can I go about addressing this? Does each layer need at least two points?
Beta Was this translation helpful? Give feedback.
All reactions