Changeset 1627 for branches/alma
- Timestamp:
- 09/03/09 15:15:48 (15 years ago)
- Location:
- branches/alma/python
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/alma/python/__init__.py
r1624 r1627 233 233 except ValueError, msg: 234 234 #print ('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s' % (val, cnt, line, fname, msg)) 235 asaplog.push('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s' % (val, cnt, line, fname, msg ))235 asaplog.push('Bad val "%s" on line #%d\n\t"%s"\n\tin file "%s"\n\t%s' % (val, cnt, line, fname, msg.message)) 236 236 print_log('WARN') 237 237 continue -
branches/alma/python/asapfitter.py
r1614 r1627 165 165 if len(ps) == 0 or estimate: 166 166 self.fitter.estimate() 167 try: 168 fxdpar = list(self.fitter.getfixedparameters()) 167 try: fxdpar = list(self.fitter.getfixedparameters()) 169 168 if len(fxdpar) and fxdpar.count(0) == 0: 170 169 raise RuntimeError,"No point fitting, if all parameters are fixed." … … 179 178 #print msg 180 179 print_log() 181 asaplog.push(msg )180 asaplog.push(msg.message) 182 181 print_log('ERROR') 183 182 else: -
branches/alma/python/asaplotbase.py
r1620 r1627 450 450 #print 'Failed to save %s: Error msg was\n\n%s' % (fname, err) 451 451 print_log() 452 asaplog.push('Failed to save %s: Error msg was\n\n%s' % (fname, msg ))452 asaplog.push('Failed to save %s: Error msg was\n\n%s' % (fname, msg.message)) 453 453 print_log( 'ERROR' ) 454 454 return -
branches/alma/python/scantable.py
r1625 r1627 765 765 #print msg 766 766 print_log() 767 asaplog.push( msg )767 asaplog.push( msg.message ) 768 768 print_log( 'ERROR' ) 769 769 else: … … 814 814 #print msg 815 815 print_log() 816 asaplog.push( msg )816 asaplog.push( msg.message ) 817 817 print_log( 'ERROR' ) 818 818 return … … 848 848 #print msg 849 849 print_log() 850 asaplog.push( msg )850 asaplog.push( msg.message ) 851 851 print_log( 'ERROR' ) 852 852 return … … 1230 1230 #print msg 1231 1231 print_log() 1232 asaplog.push( msg )1232 asaplog.push( msg.message ) 1233 1233 print_log( 'ERROR' ) 1234 1234 return … … 1457 1457 #print msg 1458 1458 print_log() 1459 asaplog.push( msg )1459 asaplog.push( msg.message ) 1460 1460 print_log( 'ERROR' ) 1461 1461 return … … 1537 1537 #print msg 1538 1538 print_log() 1539 asaplog.push( msg )1539 asaplog.push( msg.message ) 1540 1540 print_log( 'ERROR' ) 1541 1541 return
Note:
See TracChangeset
for help on using the changeset viewer.