Update app.py
Browse files
app.py
CHANGED
|
@@ -261,7 +261,7 @@ def tif_view(filepath):
|
|
| 261 |
if imin<2:
|
| 262 |
img = np.tranpose(img, [2, imin])
|
| 263 |
else:
|
| 264 |
-
|
| 265 |
|
| 266 |
Ly, Lx, nchan = img.shape
|
| 267 |
imgi = np.zeros((Ly, Lx, 3))
|
|
|
|
| 261 |
if imin<2:
|
| 262 |
img = np.tranpose(img, [2, imin])
|
| 263 |
else:
|
| 264 |
+
raise ValueError("TIF cannot have more than three dimensions")
|
| 265 |
|
| 266 |
Ly, Lx, nchan = img.shape
|
| 267 |
imgi = np.zeros((Ly, Lx, 3))
|