| 5942 |
amit.gupta |
1 |
values = []
|
|
|
2 |
resolution = None
|
|
|
3 |
sensorChildSlide = None
|
|
|
4 |
expChildrenSlides = expSlide.getExpandedChildrenSlides()
|
|
|
5 |
|
|
|
6 |
if expChildrenSlides is not None:
|
|
|
7 |
for expChildSlide in expChildrenSlides:
|
|
|
8 |
if expChildSlide.getSlideDefinition() == 130152:
|
|
|
9 |
sensorChildSlide = expChildSlide
|
|
|
10 |
break
|
|
|
11 |
|
|
|
12 |
if sensorChildSlide is not None:
|
|
|
13 |
expFeatures = sensorChildSlide.getExpandedFeatures()
|
|
|
14 |
if expFeatures is not None:
|
|
|
15 |
for expFeature in expFeatures:
|
|
|
16 |
print expFeature.getFeatureDefinition()
|
|
|
17 |
if expFeature.getFeatureDefinition().getID() == 120387:
|
|
|
18 |
print "Effective Resolution"
|
|
|
19 |
expBullets = expFeature.getExpandedBullets()
|
|
|
20 |
if expBullets is not None:
|
|
|
21 |
for expBullet in expBullets:
|
|
|
22 |
resolution = float(expBullet.getValue())
|
|
|
23 |
|
|
|
24 |
if resolution is not None:
|
|
|
25 |
print "Resulution is" + `resolution`
|
|
|
26 |
|
|
|
27 |
if resolution < 10 :
|
|
|
28 |
strRate = "Upto 10 Mpx"
|
|
|
29 |
elif resolution < 15 :
|
|
|
30 |
strRate = "10 - 15 Mpx"
|
|
|
31 |
elif resolution < 20 :
|
|
|
32 |
strRate = "15 - 20 Mpx"
|
|
|
33 |
else :
|
|
|
34 |
strRate = "Above 20 Mpx"
|
|
|
35 |
|
|
|
36 |
values.append(strRate)
|