Subversion Repositories SmartDukaan

Rev

Rev 323 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 323 Rev 2657
Line 1... Line 1...
1
import battery_math as mathmodel
1
import battery_math as mathmodel
2
import utils
2
import utils
3
 
3
 
4
print "expSlide=" + `expSlide`
4
print "expSlide=" + `expSlide`
5
 
5
 
6
struct = utils.contentModel2Struct(expSlide)
6
struct = utils.contentModel2Struct(expSlide, categoryObj)
7
print "struct=" + `struct`
7
print "struct=" + `struct`
8
 
8
 
9
newstruct = {}
9
newstruct = {}
10
 
10
 
11
# Copy features as is
11
# Copy features as is
Line 48... Line 48...
48
        newchildrenslides['Capacity'] = newcapacitychildrenslides
48
        newchildrenslides['Capacity'] = newcapacitychildrenslides
49
        
49
        
50
    newstruct['childrenslides'] = newchildrenslides 
50
    newstruct['childrenslides'] = newchildrenslides 
51
        
51
        
52
print "newstruct=" + `newstruct`
52
print "newstruct=" + `newstruct`
53
score = mathmodel.getscore(newstruct)
-
 
54
53
score = mathmodel.getscore(newstruct)
-
 
54