Skip to content

Commit

Permalink
Merge pull request #17 from jonwright/master
Browse files Browse the repository at this point in the history
dim1/dim2 not writable any more
  • Loading branch information
jonwright authored Apr 15, 2019
2 parents 42abc65 + 32c6acd commit 7301884
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Fabian/appWin.py
Original file line number Diff line number Diff line change
Expand Up @@ -1933,7 +1933,7 @@ def openimage(self,filename=None):
-1*self.orientation[1],
-1*self.orientation[2],
-1*self.orientation[3])
(img.dim2, img.dim1) = img.data.shape
# (img.dim2, img.dim1) = img.data.shape
# PIL is used to load an image, thereis already a pilimage
# present. Hence it will not make a new, so remove pilimage first
img.pilimage = None
Expand All @@ -1942,7 +1942,9 @@ def openimage(self,filename=None):
# to keep images in the same direction we do the same here
#self.im = self.im.transpose(1)

(self.xsize, self.ysize)=(img.dim1, img.dim2)
# (self.xsize, self.ysize)=(img.dim1, img.dim2)
(self.ysize, self.xsize)=(img.data.shape)

except IOError:
raise

Expand Down

0 comments on commit 7301884

Please sign in to comment.