Changeset 1061 for trunk/python/asapfitter.py
- Timestamp:
- 06/08/06 13:59:51 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapfitter.py
r1039 r1061 322 322 fix = "" 323 323 if fixed[i]: fix = "(fixed)" 324 out += ' p%d%s= %3. 3f,' % (c,fix,pars[i])324 out += ' p%d%s= %3.6f,' % (c,fix,pars[i]) 325 325 c+=1 326 326 out = out[:-1] # remove trailing ',' … … 491 491 print_log() 492 492 493 def auto_fit(self, insitu=None ):493 def auto_fit(self, insitu=None, plot=False): 494 494 """ 495 495 Return a scan where the function is applied to all rows for … … 521 521 self.fit() 522 522 x = self.get_parameters() 523 if plot: 524 self.plot(residual=True) 525 x = raw_input("Accept fit ([y]/n): ") 526 if x.upper() == 'N': 527 continue 523 528 scan._setspectrum(self.fitter.getresidual(), r) 529 if plot: 530 self._p.unmap() 531 self._p = None 524 532 print_log() 525 533 return scan
Note: See TracChangeset
for help on using the changeset viewer.