aboutsummaryrefslogtreecommitdiff
path: root/operationscore/PixelMapper.py
diff options
context:
space:
mode:
authorGravatar rcoh <rcoh@mit.edu>2011-01-22 13:31:56 -0500
committerGravatar rcoh <rcoh@mit.edu>2011-01-22 13:31:56 -0500
commit7f88db7003a03b50dc500bf7bd711407f1a640de (patch)
tree64c08cf2bfd6fb30ccbfc3f4a9fb2435f417abdf /operationscore/PixelMapper.py
parenta223608dda0751551c6e8688c0c0e1c9a1d4e69c (diff)
Bouncing behavior. Working out a weird bug. Threading may be involved?
Diffstat (limited to 'operationscore/PixelMapper.py')
-rw-r--r--operationscore/PixelMapper.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/operationscore/PixelMapper.py b/operationscore/PixelMapper.py
index 1f94fa5..7e2b0af 100644
--- a/operationscore/PixelMapper.py
+++ b/operationscore/PixelMapper.py
@@ -1,4 +1,5 @@
from operationscore.SmootCoreObject import *
+from logger import main_log
import pdb
class PixelMapper(SmootCoreObject):
def init(self):
@@ -8,7 +9,8 @@ class PixelMapper(SmootCoreObject):
def mapEvent(self, eventLocation, screen):
self.totalCalls += 1
if self.totalCalls % 100 == 0:
- print self['Id'], self.cachehits / float(self.totalCalls)
+ main_log.info('Cache percentage for :', self['Id'], self.cachehits /\
+ float(self.totalCalls))
if eventLocation in self.mem:
self.cachehits += 1
return self.mem[eventLocation]