scan: Log the loop index
authorW. Trevor King <wking@tremily.us>
Thu, 7 Feb 2013 06:05:55 +0000 (01:05 -0500)
committerW. Trevor King <wking@tremily.us>
Thu, 7 Feb 2013 06:05:55 +0000 (01:05 -0500)
So the user can gauge the remaining experiment time.

unfold_protein/scan.py

index b849e49a22047a8b30816a6dc7d3e57bea247512..de1edda85d4ef87916470a4bb71bccb99cff2ebf 100644 (file)
@@ -35,6 +35,8 @@ class UnfoldScanner (object):
         self._stop = False
         _signal.signal(_signal.SIGTERM, self._handle_stop_signal)
         for i in range(self.config['velocity']['num loops']):
+            _LOG.info('on loop {} of {}'.format(
+                    i, self.config['velocity']['num loops']))
             for velocity in self.config['velocity']['unfolding velocities']:
                 if self._stop:
                     return