raven / raven_utils /properties.py
Jakub Kwiatkowski
Refactor.
38f87b5
raw
history blame
316 Bytes
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()))