layer control is returning NoneType for createDisplay

Errors and unexpected results
Post Reply
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

layer control is returning NoneType for createDisplay

Post by joleenf »

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
User avatar
Jon
Posts: 192
Joined: Fri Jan 09, 2009 8:44 pm
Location: Madison, WI

Re: layer control is returning NoneType for createDisplay

Post by Jon »

Hi Joleen,

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])
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: layer control is returning NoneType for createDisplay

Post by joleenf »

Yes Jon, it was horrible user error. I did indeed use createDisplay rather than createLayer() and that is what caused the problem.

Joleen
User avatar
joleenf
Posts: 1123
Joined: Mon Jan 19, 2009 7:16 pm

Re: layer control is returning NoneType for createDisplay

Post by joleenf »

Jon,

I am seeing the same problem today...

layer1a=activeDisplay().createLayer('Image Display', NDSI)

returns None for the layer.

Joleen
User avatar
bobc
Posts: 990
Joined: Mon Nov 15, 2010 5:57 pm

Re: layer control is returning NoneType for createDisplay

Post by bobc »

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
Post Reply