sjtans commited on
Commit
0494df2
·
verified ·
1 Parent(s): b22cdd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -127,7 +127,7 @@ def get_slice(filepath, z, c=0):
127
  if img.ndim==3:
128
  if (z>=img.shape[0]) | (z<0):
129
  print('z to big')
130
- return np.zeros((img.shape[0], img.shape[1]))
131
  if img.ndim==4:
132
  if (z>=img.shape[0]) | (z<0):
133
  return np.zeros((img.shape[2], img.shape[3]))
 
127
  if img.ndim==3:
128
  if (z>=img.shape[0]) | (z<0):
129
  print('z to big')
130
+ return np.zeros((img.shape[1], img.shape[2]))
131
  if img.ndim==4:
132
  if (z>=img.shape[0]) | (z<0):
133
  return np.zeros((img.shape[2], img.shape[3]))