Hi,
I am running the latest nightly. It appears that the layer control is not being returned properly when the display is created.
Build-date: 2013-11-12 10:30 Version 1.5beta1
layerVIS = panel[0].createDisplay('Image Display', imgVIS)
where imgVIS has been verified as a MappedAreaImageFlatField.
print, layerVIS returns <type 'NoneType'>
Joleen
layer control is returning NoneType for createDisplay
Re: layer control is returning NoneType for createDisplay
Hi Joleen,
Does changing the code to the following help?
Does changing the code to the following help?
Code: Select all
layerVIS = panel[0].createLayer('Image Display', imgVIS)
# might want to try using see to make sure everything is as it should be:
# print see(panel[0])
Re: layer control is returning NoneType for createDisplay
Yes Jon, it was horrible user error. I did indeed use createDisplay rather than createLayer() and that is what caused the problem.
Joleen
Joleen
Re: layer control is returning NoneType for createDisplay
Jon,
I am seeing the same problem today...
layer1a=activeDisplay().createLayer('Image Display', NDSI)
returns None for the layer.
Joleen
I am seeing the same problem today...
layer1a=activeDisplay().createLayer('Image Display', NDSI)
returns None for the layer.
Joleen
Re: layer control is returning NoneType for createDisplay
Hi Joleen -
Can you try this again with today's nightly? We put in a fix that solved the <None Type> problems I was seeing yesterday.
Thanks -
Bob
Can you try this again with today's nightly? We put in a fix that solved the <None Type> problems I was seeing yesterday.
Thanks -
Bob