Skip to content

Commit cf89ac7

Browse files
Update gempy/modules/mesh_extranction/marching_cubes.py
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
1 parent f19b02c commit cf89ac7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gempy/modules/mesh_extranction/marching_cubes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def extract_mesh_for_element(structural_element: StructuralElement,
7575
"""
7676
if type(scalar_field).__module__ == 'torch':
7777
import torch
78-
scalar_field = torch.to_numpy(scalar_field)
78+
scalar_field = scalar_field.detach().numpy()
7979
if type(mask).__module__ == "torch":
8080
import torch
8181
mask = torch.to_numpy(mask)

0 commit comments

Comments
 (0)