1 from operationscore.SmootCoreObject import *
2 import util.Geo as Geo
3 import pdb
12
13 locations = [self.argDict['originLocation']]
14 for pixelIndex in range(self['numPixels']-1):
15
16 newLocation = self.layoutFunc(locations[-1])
17 if newLocation == None:
18 raise Exception('Location cannot be null. layoutFunc not \
19 defined or improperly defined.')
20 if Geo.dist(newLocation, locations[-1]) > \
21 self['pixelToPixelSpacing']:
22 raise Exception('Illegal pixel location. Distance \
23 between adjacent pixels must be less than \
24 pixelToPixelSpacing. Illegal distance is between '+str(pixelIndex) + ' and'\
25 + str(pixelIndex+1))
26 locations.append(newLocation)
27 if self['Reverse']:
28 locations.reverse()
29 return locations
33 return self.argDict
34