{"action":"created","issue":{"url":"https://api.github.com/repos/SpiNNakerManchester/sPyNNaker/issues/144","labels_url":"https://api.github.com/repos/SpiNNakerManchester/sPyNNaker/issues/144/labels{/name}","comments_url":"https://api.github.com/repos/SpiNNakerManchester/sPyNNaker/issues/144/comments","events_url":"https://api.github.com/repos/SpiNNakerManchester/sPyNNaker/issues/144/events","html_url":"https://github.com/SpiNNakerManchester/sPyNNaker/issues/144","id":108317799,"number":144,"title":"Cannot call run(time) several times","user":{"login":"Scaatis","id":208336,"avatar_url":"https://avatars.githubusercontent.com/u/208336?v=3","gravatar_id":"","url":"https://api.github.com/users/Scaatis","html_url":"https://github.com/Scaatis","followers_url":"https://api.github.com/users/Scaatis/followers","following_url":"https://api.github.com/users/Scaatis/following{/other_user}","gists_url":"https://api.github.com/users/Scaatis/gists{/gist_id}","starred_url":"https://api.github.com/users/Scaatis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scaatis/subscriptions","organizations_url":"https://api.github.com/users/Scaatis/orgs","repos_url":"https://api.github.com/users/Scaatis/repos","events_url":"https://api.github.com/users/Scaatis/events{/privacy}","received_events_url":"https://api.github.com/users/Scaatis/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/SpiNNakerManchester/sPyNNaker/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/SpiNNakerManchester/sPyNNaker/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/SpiNNakerManchester/sPyNNaker/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":{"login":"alan-stokes","id":7520968,"avatar_url":"https://avatars.githubusercontent.com/u/7520968?v=3","gravatar_id":"","url":"https://api.github.com/users/alan-stokes","html_url":"https://github.com/alan-stokes","followers_url":"https://api.github.com/users/alan-stokes/followers","following_url":"https://api.github.com/users/alan-stokes/following{/other_user}","gists_url":"https://api.github.com/users/alan-stokes/gists{/gist_id}","starred_url":"https://api.github.com/users/alan-stokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alan-stokes/subscriptions","organizations_url":"https://api.github.com/users/alan-stokes/orgs","repos_url":"https://api.github.com/users/alan-stokes/repos","events_url":"https://api.github.com/users/alan-stokes/events{/privacy}","received_events_url":"https://api.github.com/users/alan-stokes/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/SpiNNakerManchester/sPyNNaker/milestones/3","html_url":"https://github.com/SpiNNakerManchester/sPyNNaker/milestones/December%202015%20release","labels_url":"https://api.github.com/repos/SpiNNakerManchester/sPyNNaker/milestones/3/labels","id":1271013,"number":3,"title":"December 2015 release","description":"HBP Summer School / Code Jam release\r\nCode freeze date to be detemrined.\r\n\r\nFeatures to include that were missed from the Spet 2015 milestone:\r\n1. Removal of Delay Extensions\r\n2. Buffered output of recorded data to allow longer simulations with recorded data\r\n3. Pacman modifcations improvements to allow the use of multiple boards and use of different algorithums.\r\n4. More reduction in processing and load times before simulations start\r\n5. PyNN 0.8 Support\r\n6. Multitude of bug fixes that were missed in previous releases.\r\n6. Music support","creator":{"login":"alan-stokes","id":7520968,"avatar_url":"https://avatars.githubusercontent.com/u/7520968?v=3","gravatar_id":"","url":"https://api.github.com/users/alan-stokes","html_url":"https://github.com/alan-stokes","followers_url":"https://api.github.com/users/alan-stokes/followers","following_url":"https://api.github.com/users/alan-stokes/following{/other_user}","gists_url":"https://api.github.com/users/alan-stokes/gists{/gist_id}","starred_url":"https://api.github.com/users/alan-stokes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alan-stokes/subscriptions","organizations_url":"https://api.github.com/users/alan-stokes/orgs","repos_url":"https://api.github.com/users/alan-stokes/repos","events_url":"https://api.github.com/users/alan-stokes/events{/privacy}","received_events_url":"https://api.github.com/users/alan-stokes/received_events","type":"User","site_admin":false},"open_issues":25,"closed_issues":9,"state":"open","created_at":"2015-08-25T08:22:47Z","updated_at":"2015-11-10T14:23:44Z","due_on":"2015-12-22T00:00:00Z","closed_at":null},"comments":13,"created_at":"2015-09-25T12:38:45Z","updated_at":"2015-11-17T14:29:00Z","closed_at":null,"body":"I am integrating Spinnaker into our current system, where the simulation should be run 100ms at a time, then stopped and resumed. However, attempting to call `spinnaker.pyNN.run` twice (with the same time interval) results in the error\r\n\r\n    spinn_front_end_common.utilities.exceptions.ConfigurationException: cannot set the number of machine time steps of a given model once it has already been set\r\n\r\nIs this purely a frontend problem? Or is there a technical reason why the simulation cannot be stopped and resumed?"},"comment":{"url":"https://api.github.com/repos/SpiNNakerManchester/sPyNNaker/issues/comments/157385936","html_url":"https://github.com/SpiNNakerManchester/sPyNNaker/issues/144#issuecomment-157385936","issue_url":"https://api.github.com/repos/SpiNNakerManchester/sPyNNaker/issues/144","id":157385936,"user":{"login":"Scaatis","id":208336,"avatar_url":"https://avatars.githubusercontent.com/u/208336?v=3","gravatar_id":"","url":"https://api.github.com/users/Scaatis","html_url":"https://github.com/Scaatis","followers_url":"https://api.github.com/users/Scaatis/followers","following_url":"https://api.github.com/users/Scaatis/following{/other_user}","gists_url":"https://api.github.com/users/Scaatis/gists{/gist_id}","starred_url":"https://api.github.com/users/Scaatis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scaatis/subscriptions","organizations_url":"https://api.github.com/users/Scaatis/orgs","repos_url":"https://api.github.com/users/Scaatis/repos","events_url":"https://api.github.com/users/Scaatis/events{/privacy}","received_events_url":"https://api.github.com/users/Scaatis/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T14:29:00Z","updated_at":"2015-11-17T14:29:00Z","body":"I figured it out. Did you test the way to set spike times between runs? You previously suggested this pseudocode:\r\n\r\nruntime=1000\r\ntotal_runtime = 0\r\nssa = p.pop(spike_source_array, spike_times = [0])\r\np.run(runtime)\r\ntotal_runtime += runtime\r\nsa.tset(spikes_times=[1001])\r\np.run(runtime)\r\ntotal_runtime += runtime\r\ntime = 1\r\nsa.tset(spike_times=[total_runtime + time])\r\np.run(runtime)\r\n\r\n1) What is the meaning of `tset` here? `spike_times` used to be a list of lists, one for each neuron, containing the spike times. Tset seems to duplicate this? Has something changed there?\r\n2) I'm not sure why, but `pop.get(\"spike_times\")[0] = <list>` did not result in me getting any spikes. Since spike times is a list, it should be mutable. Is the send buffer of `SpikeSourceArray` updated before every run? (This was my problem before)\r\n3) While `SpikeSourceArray` sees if you're trying to set `spike_times` and recognizes that this does not require mapping again, the method call first passes through `set` or `tset` in `Population`, which always sets `self._change_needs_mapping`, regeardless of what value you set. So if you do change the spike times that way, you get an error message (and a crash, rather than `run` just running `stop, reset, run`)"}}