Skip to content

Commit

Permalink
Address Numpy DeprecationWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
jpgill86 committed Feb 9, 2021
1 parent c068c2d commit 4194bc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ephyviewer/tests/testing_tools.py
Expand Up @@ -80,7 +80,7 @@ def make_video_file(filename, codec='mpeg4', rate=25.): # mpeg4 mjpeg libx264
#~ ax.set_title()
#~ line.set_markersize(i)
fig.canvas.draw()
one_img = np.fromstring(fig.canvas.tostring_rgb(), dtype='u1').reshape(h,w,3)
one_img = np.frombuffer(fig.canvas.tostring_rgb(), dtype='u1').reshape(h,w,3)
one_img = one_img[:,:,::-1].copy()
#~ one_img = one_img .swapaxes(0,1).copy()

Expand Down

0 comments on commit 4194bc0

Please sign in to comment.