maxbetjes commited on
Commit
0c79f97
·
verified ·
1 Parent(s): 9cec4af

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -35,7 +35,8 @@ def tif_view(filepath):
35
  imin = np.argmin(img.shape)
36
  print(imin)
37
  if imin<2:
38
- img = np.moveaxis(img, imin, -1)
 
39
  else:
40
  raise ValueError("TIF cannot have more than three dimensions")
41
 
 
35
  imin = np.argmin(img.shape)
36
  print(imin)
37
  if imin<2:
38
+ img = np.moveaxis(img, imin, 2)
39
+ print(img.shape)
40
  else:
41
  raise ValueError("TIF cannot have more than three dimensions")
42