Changeset 438
- Timestamp:
- 10/07/09 00:08:31 (3 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
src/stgen.py (modified) (1 diff)
-
test/test_stgen.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/stgen.py
r437 r438 354 354 # return empty if no spikes 355 355 if len(ps) == 0: 356 return SpikeTrain(numpy.array([]), t_start=t[0],t_stop=t_stop) 356 if array: 357 return numpy.array([]) 358 else: 359 return SpikeTrain(numpy.array([]), t_start=t[0],t_stop=t_stop) 357 360 358 361 -
trunk/test/test_stgen.py
r437 r438 334 334 assert ge.t_stop==1500.0 335 335 336 336 337 337 338 338
