Changeset 1536
- Timestamp:
- 03/25/09 15:09:10 (16 years ago)
- Location:
- trunk/python
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapfitter.py
r1420 r1536 3 3 from asap import print_log 4 4 from asap import _n_bools 5 from asap import mask_and 5 6 6 7 class fitter: … … 142 143 self.x = self.data._getabcissa(row) 143 144 self.y = self.data._getspectrum(row) 145 self.mask = mask_and(self.mask, self.data._getmask(row)) 144 146 from asap import asaplog 145 147 asaplog.push("Fitting:") 146 148 i = row 147 out = "Scan[%d] Beam[%d] IF[%d] Pol[%d] Cycle[%d]" % (self.data.getscan(i),self.data.getbeam(i),self.data.getif(i),self.data.getpol(i), self.data.getcycle(i)) 149 out = "Scan[%d] Beam[%d] IF[%d] Pol[%d] Cycle[%d]" % (self.data.getscan(i), 150 self.data.getbeam(i), 151 self.data.getif(i), 152 self.data.getpol(i), 153 self.data.getcycle(i)) 148 154 asaplog.push(out,False) 149 155 self.fitter.setdata(self.x, self.y, self.mask) … … 589 595 asaplog.push("Fitting:") 590 596 for r in rows: 591 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)) 597 out = " Scan[%d] Beam[%d] IF[%d] Pol[%d] Cycle[%d]" % (scan.getscan(r), 598 scan.getbeam(r), 599 scan.getif(r), 600 scan.getpol(r), 601 scan.getcycle(r)) 592 602 asaplog.push(out, False) 593 603 self.x = scan._getabcissa(r) 594 604 self.y = scan._getspectrum(r) 605 self.mask = mask_and(self.mask, scan._getmask(r)) 595 606 self.data = None 596 607 self.fit() -
trunk/python/scantable.py
r1512 r1536 1398 1398 # setup line finder 1399 1399 fl.find_lines(r, mask, curedge) 1400 f.set_scan(workscan, fl.get_mask()) 1401 f.x = workscan._getabcissa(r) 1402 f.y = workscan._getspectrum(r) 1403 f.data = None 1400 f.set_data(workscan._getabcissa(r), workscan._getspectrum(r), 1401 mask_and(workscan._getmask(r), fl.get_mask())) 1404 1402 f.fit() 1405 1403 x = f.get_parameters()
Note:
See TracChangeset
for help on using the changeset viewer.