Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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[
|
| 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]))
|