Пример #1
0
 def decode(pairs):
     if dataName not in pairs:
         print 'TwoDColours: no event data called:', \
             dataName, 'in:', pairs
         return class_([[Colour(colours.errorColour)]])
     else:
         parsed = parse.list_parser(pairs[dataName])
         return class_(parse.map2(special_view_decoder(elemClass), \
             parsed))
Пример #2
0
 def to_striped_block(self, select):
     return parse.map2(lambda d: d.to_striped_block(select), self.blockss)