Changeset 33 for mire/process.py
- Timestamp:
- 10/28/08 17:50:04 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
mire/process.py
r31 r33 349 349 if (x_rel < 0): 350 350 tmp['theta']+=math.pi 351 if (tmp['theta'] < 0): 351 # Offset de pi pour se mettre en convention "astro" 352 # theta = 0 -> P droit quand nord vers le haut 353 tmp['theta']+=math.pi 354 while (tmp['theta'] < 0): 352 355 tmp['theta'] += 2*math.pi 353 if(tmp['theta'] >= 2*math.pi):356 while (tmp['theta'] >= 2*math.pi): 354 357 tmp['theta'] -= 2*math.pi 355 couronne.append(tmp) 358 # On n'écrit pas les valeurs aberrantes 359 if ((tmp['ScFact'] > 1.05) and (tmp['ScFact'] < 1.07)): 360 couronne.append(tmp) 356 361 357 362 output_couronne = file(options.ring,'w')
Note: See TracChangeset
for help on using the changeset viewer.