<html><head></head><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:14px"><div id="yui_3_16_0_1_1457427943777_14898"><span>Hi Trevor,</span></div><div id="yui_3_16_0_1_1457427943777_14898"><span><br></span></div><div id="yui_3_16_0_1_1457427943777_14898" dir="ltr"><span id="yui_3_16_0_1_1457427943777_15008">Thanks a lot! This works very well.</span></div><div id="yui_3_16_0_1_1457427943777_14898" dir="ltr"><span><br></span></div><div id="yui_3_16_0_1_1457427943777_14898" dir="ltr"><span id="yui_3_16_0_1_1457427943777_15142">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.</span></div><div id="yui_3_16_0_1_1457427943777_14898" dir="ltr"><span><br></span></div><div id="yui_3_16_0_1_1457427943777_14898" dir="ltr">For saving, I'm currently using python's shelve module, not numpy's savez. Dunno which one is better.</div><div class="qtdSeparateBR" id="yui_3_16_0_1_1457427943777_15007"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1457427943777_15007">Have also subscribed to the issues who pointed out.</div><div class="qtdSeparateBR" id="yui_3_16_0_1_1457427943777_15007"><br></div><div class="qtdSeparateBR" id="yui_3_16_0_1_1457427943777_15007">Thanks and Cheers,</div><div class="qtdSeparateBR" id="yui_3_16_0_1_1457427943777_15007">Aditya.</div><div class="qtdSeparateBR" id="yui_3_16_0_1_1457427943777_15007"><br></div><div class="yahoo_quoted" id="yui_3_16_0_1_1457427943777_14926" style="display: block;"> <div style="font-family: times new roman, new york, times, serif; font-size: 14px;" id="yui_3_16_0_1_1457427943777_14925"> <div style="font-family: HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, Sans-Serif; font-size: 16px;" id="yui_3_16_0_1_1457427943777_14924"> <div dir="ltr" id="yui_3_16_0_1_1457427943777_15145"><font size="2" face="Arial" id="yui_3_16_0_1_1457427943777_15144"> On Wednesday, 24 February 2016 7:52 PM, Trevor Bekolay <tbekolay@gmail.com> wrote:<br></font></div> <blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; margin-top: 5px; padding-left: 5px;" id="yui_3_16_0_1_1457427943777_14923"> <br><br> <div class="y_msg_container" id="yui_3_16_0_1_1457427943777_14922"><div id="yiv0692978657"><div id="yui_3_16_0_1_1457427943777_14921"><div dir="ltr" id="yui_3_16_0_1_1457427943777_14920">Hi Aditya,<div id="yui_3_16_0_1_1457427943777_14919"><br clear="none"></div><div id="yui_3_16_0_1_1457427943777_14931">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.</div><div id="yui_3_16_0_1_1457427943777_14932"><br clear="none"></div><div id="yui_3_16_0_1_1457427943777_15414">You can manually save your probes to disk (using, for example, numpy.savez; see <a rel="nofollow" shape="rect" target="_blank" href="http://docs.scipy.org/doc/numpy-1.10.0/reference/generated/numpy.savez.html" id="yui_3_16_0_1_1457427943777_15415">http://docs.scipy.org/doc/numpy-1.10.0/reference/generated/numpy.savez.html</a> ) and then flush the probes as I've described in this issue: <a rel="nofollow" shape="rect" target="_blank" href="https://github.com/nengo/nengo/issues/963">https://github.com/nengo/nengo/issues/963</a></div><div id="yui_3_16_0_1_1457427943777_15524"><br clear="none"></div><div id="yui_3_16_0_1_1457427943777_15361">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:</div><div>- <a rel="nofollow" shape="rect" target="_blank" href="https://github.com/nengo/nengo/issues/447">https://github.com/nengo/nengo/issues/447</a></div><div id="yui_3_16_0_1_1457427943777_15526">- <a rel="nofollow" shape="rect" target="_blank" href="https://github.com/nengo/nengo/issues/613" id="yui_3_16_0_1_1457427943777_15525">https://github.com/nengo/nengo/issues/613</a></div><div><br clear="none"></div><div id="yui_3_16_0_1_1457427943777_15527">Hope that helps!</div><div>Trevor</div></div><div class="yiv0692978657gmail_extra" id="yui_3_16_0_1_1457427943777_15529"><br clear="none"><div class="yiv0692978657gmail_quote" id="yui_3_16_0_1_1457427943777_15528">On Wed, Jan 27, 2016 at 9:34 AM, Aditya Gilra <span dir="ltr"><<a rel="nofollow" shape="rect" ymailto="mailto:aditya_gilra@yahoo.com" target="_blank" href="mailto:aditya_gilra@yahoo.com">aditya_gilra@yahoo.com</a>></span> wrote:<br clear="none"><blockquote class="yiv0692978657gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;" id="yui_3_16_0_1_1457427943777_15533"><div class="yiv0692978657yqt3044525542" id="yiv0692978657yqt90287"><div id="yui_3_16_0_1_1457427943777_15532"><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:14px;" id="yui_3_16_0_1_1457427943777_15531"><div>Hi,</div><div><br clear="none"></div><div dir="ltr">Is there a way to probe LIF neurons for only a list of spiketimes instead of 0 or 1 at each time point?</div><div dir="ltr" id="yui_3_16_0_1_1457427943777_15530">The raster style 0/1 takes up a lot of RAM, if I run for 200s.</div><div dir="ltr" id="yui_3_16_0_1_1457427943777_15534"><br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1457427943777_15535">If not, is there a way to flush probes to disk either via Nengo or manually:</div><div dir="ltr" id="yui_3_16_0_1_1457427943777_15536">for smalltime in arange(0,runtime,smalltimerange):</div><div dir="ltr" id="yui_3_16_0_1_1457427943777_15537"> simulator.run(smalltime)<br clear="none"></div><div dir="ltr"> readout probes and save to disk<br clear="none"></div><div dir="ltr" id="yui_3_16_0_1_1457427943777_15538"> clear probes</div><div dir="ltr"><br clear="none"></div><div dir="ltr">Thanks a lot,</div><div dir="ltr">Aditya.</div></div></div></div><br clear="none">_______________________________________________<br clear="none">
nengo-user mailing list<br clear="none">
<a rel="nofollow" shape="rect" ymailto="mailto:nengo-user@ctnsrv.uwaterloo.ca" target="_blank" href="mailto:nengo-user@ctnsrv.uwaterloo.ca">nengo-user@ctnsrv.uwaterloo.ca</a><br clear="none">
<a rel="nofollow" shape="rect" target="_blank" href="http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user">http://ctnsrv.uwaterloo.ca/mailman/listinfo/nengo-user</a><br clear="none">
<br clear="none"></blockquote></div><br clear="none"></div></div></div><br><br></div> </blockquote> </div> </div> </div></div></body></html>