Show
Ignore:
Timestamp:
01/18/10 16:45:34 (2 years ago)
Author:
apdavison
Message:

datastore key-generators now work properly if the component is the __main__ module.
Fixed a couple of rounding errors in signals.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/signals/spikes.py

    r436 r443  
    16861686        if len(self.dimensions) == 2: 
    16871687            x = (id-offset) % self.dimensions[1] 
    1688             y = self.dimensions[0] - 1 - int(numpy.floor((id-offset)/self.dimensions[1])) 
     1688            y = self.dimensions[0] - 1 - numpy.floor((id-offset)/self.dimensions[1]).astype(int) 
    16891689            return (x,y) 
    16901690