Changeset 3272
- Timestamp:
- 01/26/12 21:06:56 (4 months ago)
- Location:
- branches/mcxtrace-1.0/src/mcrun2
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/mcxtrace-1.0/src/mcrun2/main.py
r3271 r3272 178 178 179 179 # Setup logging 180 formatter = logging.Formatter('%( asctime)s -%(message)s')180 formatter = logging.Formatter('%(created)s, %(levelname)8s: %(message)s') 181 181 182 182 handler = logging.StreamHandler() -
branches/mcxtrace-1.0/src/mcrun2/mcstas.py
r3271 r3272 48 48 49 49 # Run executable 50 LOG.debug('CMD: %s %s' % (self.executable, args))50 LOG.debug('CMD: %s %s', self.executable, args) 51 51 fid = Popen([self.executable] + args, 52 52 stdout=pipe, … … 93 93 if not options.force_compile and isfile(self.binpath) \ 94 94 and modified(self.path) < modified(self.binpath): 95 LOG.info('Using existing binary: %s' %self.binpath)95 LOG.info('Using existing binary: %s', self.binpath) 96 96 return # skip 97 LOG.info('Recompiling: %s' %self.binpath)97 LOG.info('Recompiling: %s', self.binpath) 98 98 99 99 # Generate C-code … … 139 139 # Run McStas 140 140 if not mpi: 141 LOG.info('Running: %s' %self.binpath)141 LOG.info('Running: %s', self.binpath) 142 142 Process(self.binpath).run(args, pipe=pipe) 143 143 else: 144 LOG.info('Running via MPI: %s' %self.binpath)144 LOG.info('Running via MPI: %s', self.binpath) 145 145 mpi_args = ['-np', str(options.mpi), self.binpath] 146 146 mpi_args += args
