Changeset 13181 for fact/tools/pyscripts/pyfact/coor.py
- Timestamp:
- 03/22/12 21:17:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fact/tools/pyscripts/pyfact/coor.py
r13143 r13181 41 41 ey = Vector2( 0. , 1. ) 42 42 ex = Vector2( sqrt(3)/2. , 1./2. ) 43 self.center = ( center.x , center.y ) 44 self.ey = ( ey.x, ey.y) 45 self.ex = ( ex.x, ex.y ) 43 46 44 47 coor2chid = {} 45 48 chid2coor = {} 49 chid2coor_np = {} 46 50 chid2vec = {} 47 51 for vector_and_chid in vectors_and_chids: … … 68 72 coor2chid[ coor ] = chid 69 73 chid2coor[ chid ] = coor 74 chid2coor_np[ chid ] = np.array(coor) 70 75 chid2vec[ chid ] = coor_vec 71 76 … … 86 91 self.nn = chid2nn 87 92 self.chid2coor = chid2coor 93 self.chid2coor_np = chid2coor_np 88 94 self.coor2chid = coor2chid 89 95 self.chid2vec = chid2vec
Note:
See TracChangeset
for help on using the changeset viewer.