[nengo-user] probe spike times instead of raster 0/1 per time point

Aditya Gilra aditya_gilra at yahoo.com
Tue Mar 8 07:57:17 EST 2016


Hi Trevor,
Thanks a lot! This works very well.
In the interim, I had put in a toggle on/off hack in the Probe class in my local Nengo copy, and was using that to turn recording on and off. Hence the late incorporation.
For saving, I'm currently using python's shelve module, not numpy's savez. Dunno which one is better.
Have also subscribed to the issues who pointed out.
Thanks and Cheers,Aditya.
    On Wednesday, 24 February 2016 7:52 PM, Trevor Bekolay <tbekolay at gmail.com> wrote:
 
 

 Hi Aditya,
Apologies for the slow response! Unfortunately we haven't yet added a way to get a list of spiketimes instead of the raster style representation we have right now.
You can manually save your probes to disk (using, for example, numpy.savez; see http://docs.scipy.org/doc/numpy-1.10.0/reference/generated/numpy.savez.html ) and then flush the probes as I've described in this issue: https://github.com/nengo/nengo/issues/963
But yes, we will (hopefully soon!) be implementing some additional tools to automatically save simulations to disk, and to use lists of spiketimes instead of rasters. A few issues tracking these things, if you're interested, are:- https://github.com/nengo/nengo/issues/447- https://github.com/nengo/nengo/issues/613
Hope that helps!Trevor
On Wed, Jan 27, 2016 at 9:34 AM, Aditya Gilra <aditya_gilra at yahoo.com> wrote:

Hi,
Is there a way to probe LIF neurons for only a list of spiketimes instead of 0 or 1 at each time point?The raster style 0/1 takes up a lot of RAM, if I run for 200s.
If not, is there a way to flush probes to disk either via Nengo or manually:for smalltime in arange(0,runtime,smalltimerange):    simulator.run(smalltime)
    readout probes and save to disk
    clear probes
Thanks a lot,Aditya.
_______________________________________________
nengo-user mailing list
nengo-user at ctnsrv.uwaterloo.ca
http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user





 
  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://artsservices.uwaterloo.ca/pipermail/nengo-user/attachments/20160308/3ac1ba3c/attachment-0002.html>


More information about the nengo-user mailing list