{"action":"created","issue":{"url":"https://api.github.com/repos/BlueBrain/eFEL/issues/71","repository_url":"https://api.github.com/repos/BlueBrain/eFEL","labels_url":"https://api.github.com/repos/BlueBrain/eFEL/issues/71/labels{/name}","comments_url":"https://api.github.com/repos/BlueBrain/eFEL/issues/71/comments","events_url":"https://api.github.com/repos/BlueBrain/eFEL/issues/71/events","html_url":"https://github.com/BlueBrain/eFEL/issues/71","id":167843222,"number":71,"title":"Spikecount cannot be estimated when signal at the end of the trace is larger than the threshold","user":{"login":"croessert","id":5420759,"avatar_url":"https://avatars.githubusercontent.com/u/5420759?v=3","gravatar_id":"","url":"https://api.github.com/users/croessert","html_url":"https://github.com/croessert","followers_url":"https://api.github.com/users/croessert/followers","following_url":"https://api.github.com/users/croessert/following{/other_user}","gists_url":"https://api.github.com/users/croessert/gists{/gist_id}","starred_url":"https://api.github.com/users/croessert/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/croessert/subscriptions","organizations_url":"https://api.github.com/users/croessert/orgs","repos_url":"https://api.github.com/users/croessert/repos","events_url":"https://api.github.com/users/croessert/events{/privacy}","received_events_url":"https://api.github.com/users/croessert/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BlueBrain/eFEL/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-27T12:37:44Z","updated_at":"2016-07-27T12:39:32Z","closed_at":null,"body":"This was reported by @sasaray.\r\n\r\nFirst trace gives Spikecount 3 while second trace returns Spikecount 0.\r\nWhen the signal at the end of the trace is larger than the threshold, Spikecount and possibly other features cannot be estimated. This seems to be independent of stim_end.\r\n\r\n![figure_1](https://cloud.githubusercontent.com/assets/5420759/17175365/75b79702-5407-11e6-9053-94b126236b21.png)\r\n\r\n\r\n```\r\nimport numpy\r\nimport matplotlib\r\nimport matplotlib.pyplot as plt\r\nimport efel\r\n\r\ndt = 0.1\r\nv = numpy.zeros(int(100/dt)) - 70.0\r\nv[int(20/dt):int(25/dt)] = 20.\r\nv[int(40/dt):int(45/dt)] = 20.\r\nv[int(60/dt):int(65/dt)] = 20.\r\n\r\ntraces = []\r\ntrace = {}\r\ntrace['T'] = numpy.arange(len(v))*dt\r\ntrace['V'] = v\r\ntrace['stim_start'] = [10]\r\ntrace['stim_end'] = [50]\r\ntraces.append(trace)\r\n\r\nplt.subplot(2,1,1)\r\nplt.plot(trace['T'], trace['V'])\r\n\r\ntraces_results = efel.getFeatureValues(traces,['Spikecount'])\r\nprint traces_results\r\n\r\n# When the signal at the end of the trace is larger than the threshold, Spikecount and possibly other features cannont be estimated.\r\nv[int(80/dt):] = -19\r\n\r\ntraces_results = efel.getFeatureValues(traces,['Spikecount'])\r\nprint traces_results\r\n\r\nplt.subplot(2,1,2)\r\nplt.plot(trace['T'], trace['V'])\r\nplt.show()\r\n```"},"comment":{"url":"https://api.github.com/repos/BlueBrain/eFEL/issues/comments/235572456","html_url":"https://github.com/BlueBrain/eFEL/issues/71#issuecomment-235572456","issue_url":"https://api.github.com/repos/BlueBrain/eFEL/issues/71","id":235572456,"user":{"login":"wvangeit","id":3098670,"avatar_url":"https://avatars.githubusercontent.com/u/3098670?v=3","gravatar_id":"","url":"https://api.github.com/users/wvangeit","html_url":"https://github.com/wvangeit","followers_url":"https://api.github.com/users/wvangeit/followers","following_url":"https://api.github.com/users/wvangeit/following{/other_user}","gists_url":"https://api.github.com/users/wvangeit/gists{/gist_id}","starred_url":"https://api.github.com/users/wvangeit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wvangeit/subscriptions","organizations_url":"https://api.github.com/users/wvangeit/orgs","repos_url":"https://api.github.com/users/wvangeit/repos","events_url":"https://api.github.com/users/wvangeit/events{/privacy}","received_events_url":"https://api.github.com/users/wvangeit/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T12:39:32Z","updated_at":"2016-07-27T12:39:32Z","body":"Ok, strange, will have a look at it."}}
{"actor":{"display_login":"wvangeit"}}