#!/usr/bin/python from primitives import * from parser import * from taxa_block import * from trees_block import * from characters_block import * import string from sets import Set def addBlockInitializationArgs(handlerDict, blockNames, dictToAdd): for b in blockNames: el = handlerDict.get('TREES') if el: el[1].update(dictToAdd) _npb_identityTrans = string.maketrans('', '') ALL_PUBLIC_BLOCKS = {} def initializePublicBlocks(): global ALL_PUBLIC_BLOCKS initializeCharDataBlock() ALL_PUBLIC_BLOCKS = { 'TAXA' : (NexusTaxaBlock, {}), 'CHARACTERS': (NexusCharactersBlock, {}), 'DATA' : (NexusDataBlock, {}), 'TREES' : (NexusTreesBlock, {}), } initializePublicBlocks()