Changeset 13133 for fact/tools/pyscripts/pyfact/coor.py
- Timestamp:
- 03/16/12 09:01:52 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/pyfact/coor.py
r13089 r13133 44 44 coor2chid = {} 45 45 chid2coor = {} 46 coor_vec = {} 46 47 for vector_and_chid in vectors_and_chids: 47 48 vec = vector_and_chid[0] … … 56 57 y=0.0 57 58 59 58 60 coor = (int(round(x)),int(round(y))) 59 61 coor_vec = Vector2(coor[0], coor[1]) 62 60 63 if coor in coor2chid: 61 64 print 'error while filling "coor2chid":' … … 65 68 coor2chid[ coor ] = chid 66 69 chid2coor[ chid ] = coor 70 chid2vect[ chid ] = coor_vec 67 71 68 72 # hard code the offsets to the next neighbors … … 83 87 self.chid2coor = chid2coor 84 88 self.coor2chid = coor2chid 89 self.chid2vec = chid2vec 85 90 86 91 # for chid in chid2nn.keys():
Note:
See TracChangeset
for help on using the changeset viewer.