Open raster data: src1 = rasterio.open('image.tif')
get ColorInterp: x = src1.colorinterp(1)
Double click to x variable in variable explorer panel.
What is the expected output? What do you see instead?
Please provide any additional information below
Type of x variable is None and value is <ColorInterp.red: 3>, not NoneType as when I create a new variable x = None
File "/home/giangblackk/miniconda2/lib/python2.7/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 519, in createEditor
readonly=readonly)
File "/home/giangblackk/miniconda2/lib/python2.7/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 1311, in setup
readonly=readonly, remote=remote)
File "/home/giangblackk/miniconda2/lib/python2.7/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 1266, in init
title)
File "/home/giangblackk/miniconda2/lib/python2.7/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 1151, in init
minmax=minmax)
File "/home/giangblackk/miniconda2/lib/python2.7/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 111, in init
self.set_data(data)
File "/home/giangblackk/miniconda2/lib/python2.7/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 151, in set_data
self.title += data_type
TypeError: coercing to Unicode: need string or buffer, NoneType found
Description
What steps will reproduce the problem?
src1 = rasterio.open('image.tif')
x = src1.colorinterp(1)
x
variable in variable explorer panel.What is the expected output? What do you see instead?
Please provide any additional information below Type of
x
variable is None and value is<ColorInterp.red: 3>
, notNoneType
as when I create a new variablex = None
File "/home/giangblackk/miniconda2/lib/python2.7/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 519, in createEditor readonly=readonly) File "/home/giangblackk/miniconda2/lib/python2.7/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 1311, in setup readonly=readonly, remote=remote) File "/home/giangblackk/miniconda2/lib/python2.7/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 1266, in init title) File "/home/giangblackk/miniconda2/lib/python2.7/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 1151, in init minmax=minmax) File "/home/giangblackk/miniconda2/lib/python2.7/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 111, in init self.set_data(data) File "/home/giangblackk/miniconda2/lib/python2.7/site-packages/spyder/widgets/variableexplorer/collectionseditor.py", line 151, in set_data self.title += data_type TypeError: coercing to Unicode: need string or buffer, NoneType foundVersion and main components
Dependencies