Changeset 3286
- Timestamp:
- 01/26/12 21:07:13 (4 months ago)
- Location:
- branches/mcxtrace-1.0/src/mcrun2
- Files:
-
- 2 modified
-
main.py (modified) (3 diffs)
-
optimisation.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/mcxtrace-1.0/src/mcrun2/main.py
r3285 r3286 268 268 269 269 # Indicate end of setup / start of computations 270 LOG.info(' <')270 LOG.info('===') 271 271 272 272 # Set fixed parameters … … 302 302 len(i) == 2 and 303 303 all(map(is_decimal, i)), intervals.values())): 304 raise OptionValueError('Could not parse intervals.') 304 raise OptionValueError('Could not parse intervals -- result: %s' 305 % str(intervals)) 305 306 306 307 linear_interval = LinearInterval.from_range( … … 317 318 318 319 if __name__ == '__main__': 319 main() 320 try: 321 main() 322 except KeyboardInterrupt: 323 exit(1) 324 except Exception, e: 325 LOG.fatal(str(e)) -
branches/mcxtrace-1.0/src/mcrun2/optimisation.py
r3285 r3286 103 103 LOG.info('Running Scanner, result file is "%s"' % self.outfile) 104 104 105 if len(self.intervals) == 0: 106 LOG.fatal('No intervals specified! (e.g. lambda=1.0,5.0)') 107 exit(1) 108 105 109 fid = open(self.outfile, 'w') 106 110 wrote_header = False
