Skip to content

Commit

Permalink
Merge pull request #38 from rajathkumarmp/patch-1
Browse files Browse the repository at this point in the history
tostring() has been deprecated (see issue #39).
  • Loading branch information
tboggs committed Feb 10, 2016
2 parents d3966e4 + ee0f97f commit 1df16ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spectral/graphics/hypercube.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def load_textures(self):
(a, b, c) = data.shape
texSizes = [(b, a), (b, c), (a, c), (b, c), (a, c), (b, a)]
for i in range(len(images)):
img = images[i].tostring("raw", "RGBX", 0, -1)
img = images[i].tobytes("raw", "RGBX", 0, -1)
(dim_x, dim_y) = images[i].size
texImages.append(img)

Expand Down

0 comments on commit 1df16ad

Please sign in to comment.