def readAllParams( WLUnit ): Params = {} for ParamCategory in RandomGraphType.Names: Params[ParamCategory] = {} try: TaskSameProb_NTasksWithWeights = \ AIParseUtils.readIntWithWeightsList( WLUnit['otherinfo']['Params.TaskSameProb.NTasksWithWeights'], DefaultWeight = 1.0, ItemSeparator = ',' ) Params['TaskSameProb']['NTasksWithWeights'] = TaskSameProb_NTasksWithWeights except: ## print traceback.print_exc() pass try: TaskSameProb_pWithWeights = \ AIParseUtils.readFloatWithWeightsList( WLUnit['otherinfo']['Params.TaskSameProb.pWithWeights'], DefaultWeight = 1.0, ItemSeparator = ',' ) Params['TaskSameProb']['pWithWeights'] = TaskSameProb_pWithWeights except: ## print traceback.print_exc() pass try: TaskSamePred_NTasksWithWeights = \ AIParseUtils.readIntWithWeightsList( WLUnit['otherinfo']['Params.TaskSamePred.NTasksWithWeights'], DefaultWeight = 1.0, ItemSeparator = ',' ) Params['TaskSamePred']['NTasksWithWeights'] = TaskSamePred_NTasksWithWeights except: ## print traceback.print_exc() pass try: TaskSamePred_NTasksWithWeights = \ AIParseUtils.readIntWithWeightsList( WLUnit['otherinfo']['Params.TaskSamePred.NConnectWithWeights'], DefaultWeight = 1.0, ItemSeparator = ',' ) Params['TaskSamePred']['NConnectWithWeights'] = TaskSamePred_NTasksWithWeights except: ## print traceback.print_exc() pass try: LayerSameProb_NLayersWithWeights = \ AIParseUtils.readTupleWithWeightsList( WLUnit['otherinfo']['Params.LayerSameProb.NLayersWithWeights'], TupleType = AIParseUtils.TupleValues.INT_VALUE, DefaultWeight = 1.0, ItemSeparator = ';', TupleItemSeparator=',' ) Params['LayerSameProb']['NLayersWithWeights'] = LayerSameProb_NLayersWithWeights except: ## print traceback.print_exc() pass try: LayerSameProb_NLayerTasksWithWeights = \ AIParseUtils.readTupleWithWeightsList( WLUnit['otherinfo']['Params.LayerSameProb.NLayerTasksWithWeights'], TupleType = AIParseUtils.TupleValues.INT_VALUE, DefaultWeight = 1.0, ItemSeparator = ';', TupleItemSeparator=',' ) Params['LayerSameProb']['NLayerTasksWithWeights'] = LayerSameProb_NLayerTasksWithWeights except: ## print traceback.print_exc() pass try: LayerSameProb_pWithWeights = \ AIParseUtils.readFloatWithWeightsList( WLUnit['otherinfo']['Params.LayerSameProb.pWithWeights'], DefaultWeight = 1.0, ItemSeparator = ',' ) Params['LayerSameProb']['pWithWeights'] = LayerSameProb_pWithWeights except: ## print traceback.print_exc() pass try: LayerSamePred_NLayersWithWeights = \ AIParseUtils.readTupleWithWeightsList( WLUnit['otherinfo']['Params.LayerSamePred.NLayersWithWeights'], TupleType = AIParseUtils.TupleValues.INT_VALUE, DefaultWeight = 1.0, ItemSeparator = ';', TupleItemSeparator=',' ) Params['LayerSamePred']['NLayersWithWeights'] = LayerSamePred_NLayersWithWeights except: ## print traceback.print_exc() pass try: LayerSamePred_NLayerTasksWithWeights = \ AIParseUtils.readTupleWithWeightsList( WLUnit['otherinfo']['Params.LayerSamePred.NLayerTasksWithWeights'], TupleType = AIParseUtils.TupleValues.INT_VALUE, DefaultWeight = 1.0, ItemSeparator = ';', TupleItemSeparator=',' ) Params['LayerSamePred']['NLayerTasksWithWeights'] = LayerSamePred_NLayerTasksWithWeights except: ## print traceback.print_exc() pass try: LayerSamePred_NTasksWithWeights = \ AIParseUtils.readIntWithWeightsList( WLUnit['otherinfo']['Params.LayerSamePred.NConnectWithWeights'], DefaultWeight = 1.0, ItemSeparator = ',' ) Params['LayerSamePred']['NConnectWithWeights'] = LayerSamePred_NTasksWithWeights except: ## print traceback.print_exc() pass return Params