Skip to content

Commit

Permalink
Remove format keyword from make_pil_image calls [fixes spectralpython#25
Browse files Browse the repository at this point in the history
].
  • Loading branch information
tboggs committed Apr 23, 2015
1 parent 903d468 commit 8ff6614
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spectral/graphics/hypercube.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def load_textures(self):
bands = list(map(int, data.metadata['default bands']))
else:
bands = list(range(3))
image = graphics.make_pil_image(data, bands, format='bmp')
image = graphics.make_pil_image(data, bands)

# Read each image so it displays properly when viewed from the outside
# of the cube with corners rendered from lower left CCW to upper left.
Expand All @@ -268,7 +268,7 @@ def load_textures(self):
scaleMax = max([max(side.ravel()) for side in sides])
scale.set_range(scaleMin, scaleMax)
sideImages = [graphics.make_pil_image(side, color_scale=scale,
auto_scale=0, format='bmp')
auto_scale=0)
for side in sides]
images = [image] + sideImages

Expand Down

0 comments on commit 8ff6614

Please sign in to comment.