Changeset 192 for trunk/src/stgen.py
- Timestamp:
- 08/21/08 16:17:28 (4 years ago)
- Files:
-
- 1 modified
-
trunk/src/stgen.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/stgen.py
r191 r192 91 91 if len(ps) > 0: 92 92 # gen uniform rand on 0,1 for each spike 93 rn = array(self.rng.uniform(0, 1, len(ps))) 93 try: 94 rn = array(self.rng.uniform(0, 1, len(ps))) # numpy 95 except TypeError: # 96 rn = array(self.rng.uniform(len(ps))) # gsl 94 97 95 98 # instantaneous rate for each spike
