Changeset 880 for trunk/python/asapfitter.py
- Timestamp:
- 03/08/06 11:57:12 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapfitter.py
r876 r880 452 452 else: 453 453 scan = self.data 454 rows = range(scan.nrow())454 rows = xrange(scan.nrow()) 455 455 from asap import asaplog 456 456 asaplog.push("Fitting:") 457 457 for r in rows: 458 out = " Scan[%d] Beam[%d] IF[%d] Pol[%d] Cycle[%d]" % (self.data.getscan(r),self.data.getbeam(r),self.data.getif(r),self.data.getpol(r), self.data.getcycle(r))459 asaplog.push(out )458 out = " Scan[%d] Beam[%d] IF[%d] Pol[%d] Cycle[%d]" % (scan.getscan(r),scan.getbeam(r),scan.getif(r),scan.getpol(r), scan.getcycle(r)) 459 asaplog.push(out, False) 460 460 self.x = scan._getabcissa(r) 461 461 self.y = scan._getspectrum(r) … … 463 463 self.fit() 464 464 x = self.get_parameters() 465 scan._setspectrum(self.fitter.getresidual(), iRow)465 scan._setspectrum(self.fitter.getresidual(), r) 466 466 print_log() 467 467 return scan
Note: See TracChangeset
for help on using the changeset viewer.