From db12869c1604ba9594928227e7ad68e138e838d9 Mon Sep 17 00:00:00 2001 From: Philip Eisenlohr Date: Thu, 3 Nov 2011 12:18:07 +0000 Subject: [PATCH] shifted back to main folder. small polish. --- .../{FromEBSD => }/patchFromReconstructedBoundaries | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) rename processing/pre/{FromEBSD => }/patchFromReconstructedBoundaries (98%) diff --git a/processing/pre/FromEBSD/patchFromReconstructedBoundaries b/processing/pre/patchFromReconstructedBoundaries similarity index 98% rename from processing/pre/FromEBSD/patchFromReconstructedBoundaries rename to processing/pre/patchFromReconstructedBoundaries index d4c2f1b7b..df9be8ad9 100644 --- a/processing/pre/FromEBSD/patchFromReconstructedBoundaries +++ b/processing/pre/patchFromReconstructedBoundaries @@ -136,9 +136,9 @@ def rcbParser(content,M,size,tolerance): # parser for TSL-O # read segments segment = 0 connectivityXY = {"0": {"0":[],"%g"%dY:[],},\ - "%g"%dX: {"0":[],"%g"%dY:[],},} + "%g"%dX: {"0":[],"%g"%dY:[],},} connectivityYX = {"0": {"0":[],"%g"%dX:[],},\ - "%g"%dY: {"0":[],"%g"%dX:[],},} + "%g"%dY: {"0":[],"%g"%dX:[],},} grainNeighbors = [] for line in content: @@ -175,13 +175,13 @@ def rcbParser(content,M,size,tolerance): # parser for TSL-O y[i] = dY keyX = "%g"%x[i] keyY = "%g"%y[i] - if keyX not in connectivityXY: # create new hash entry for so far unknown point + if keyX not in connectivityXY: # create new hash entry for so far unknown point connectivityXY[keyX] = {} - if keyY not in connectivityXY[keyX]: # create new hash entry for so far unknown point + if keyY not in connectivityXY[keyX]: # create new hash entry for so far unknown point connectivityXY[keyX][keyY] = [] - if keyY not in connectivityYX: # create new hash entry for so far unknown point + if keyY not in connectivityYX: # create new hash entry for so far unknown point connectivityYX[keyY] = {} - if keyX not in connectivityYX[keyY]: # create new hash entry for so far unknown point + if keyX not in connectivityYX[keyY]: # create new hash entry for so far unknown point connectivityYX[keyY][keyX] = [] connectivityXY[keyX][keyY].append(segment) connectivityYX[keyY][keyX].append(segment) @@ -991,4 +991,3 @@ if 'mentat' in options.output or 'spectral' in options.output: configFile = open(myName+'.config','w') configFile.write(output) configFile.close() -