File size: 316 Bytes
38f87b5
e986ee1
38f87b5
e986ee1
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17

import raven_utils.entity as entity
from raven_utils.tools import dict_from_list2, CalcDict

NAMES = [
    'Color',
    'Size',
    'Type',
]
RAW_SIZE = [10, 6, 5]
SIZE = dict_from_list2(NAMES, RAW_SIZE)
ANGLE_SIZE = 7
NO = len(NAMES)

INDEX = (CalcDict(SIZE) * entity.SUM).to_dict()
SUM = sum(list(SIZE.values()))