Skip to content

Commit

Permalink
Allow any surface for 2D
Browse files Browse the repository at this point in the history
  • Loading branch information
AlainKadar committed Feb 14, 2024
1 parent 7e611d3 commit ce5708a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion StructuralGT/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,9 @@ class _cropper:

def __init__(self, Network, domain=None):
self.dim = Network.dim
if domain is None or Network._2d:
if Network._2d:
self.surface = 0
elif domain is None:
self.surface = int(
_fname(Network.dir + '/' + Network.image_stack[0][1]).num
) # Strip file type and 'slice' then convert to int
Expand Down

0 comments on commit ce5708a

Please sign in to comment.