You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/local/lib/python3.5/dist-packages/matplotlib/image.py in set_data(self, A)
640 if (self._A.dtype != np.uint8 and
641 not np.can_cast(self._A.dtype, float, "same_kind")):
--> 642 raise TypeError("Image data cannot be converted to float")
643
644 if not (self._A.ndim == 2
TypeError: Image data cannot be converted to float
`
And tried with previous fix as below, it still doesn't work
in ipymol core.py change to: from PIL import Image
ipymol: 0.2, install from the latest code
pymol: 1.8.2.0
The text was updated successfully, but these errors were encountered:
I run below example code:
Got below error message:
`---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
in
37 pymol.do('ray;')
38
---> 39 pymol.show()
40 pymol.do('png png0.png;')
/usr/local/lib/python3.5/dist-packages/ipymol/core.py in show(self)
112 ax = fig.add_subplot(111)
113 ax.axis('off')
--> 114 ax.imshow(np.asarray(self.to_png()))
115 return fig
116
/usr/local/lib/python3.5/dist-packages/matplotlib/init.py in inner(ax, data, *args, **kwargs)
1803 "the Matplotlib list!)" % (label_namer, func.name),
1804 RuntimeWarning, stacklevel=2)
-> 1805 return func(ax, *args, **kwargs)
1806
1807 inner.doc = _add_data_doc(inner.doc,
/usr/local/lib/python3.5/dist-packages/matplotlib/axes/_axes.py in imshow(self, X, cmap, norm, aspect, interpolation, alpha, vmin, vmax, origin, extent, shape, filternorm, filterrad, imlim, resample, url, **kwargs)
5481 resample=resample, **kwargs)
5482
-> 5483 im.set_data(X)
5484 im.set_alpha(alpha)
5485 if im.get_clip_path() is None:
/usr/local/lib/python3.5/dist-packages/matplotlib/image.py in set_data(self, A)
640 if (self._A.dtype != np.uint8 and
641 not np.can_cast(self._A.dtype, float, "same_kind")):
--> 642 raise TypeError("Image data cannot be converted to float")
643
644 if not (self._A.ndim == 2
TypeError: Image data cannot be converted to float
`
And tried with previous fix as below, it still doesn't work
in ipymol core.py change to: from PIL import Image
ipymol: 0.2, install from the latest code
pymol: 1.8.2.0
The text was updated successfully, but these errors were encountered: