{"action":"created","issue":{"url":"https://api.github.com/repos/OpenWaterAnalytics/EPANET/issues/86","repository_url":"https://api.github.com/repos/OpenWaterAnalytics/EPANET","labels_url":"https://api.github.com/repos/OpenWaterAnalytics/EPANET/issues/86/labels{/name}","comments_url":"https://api.github.com/repos/OpenWaterAnalytics/EPANET/issues/86/comments","events_url":"https://api.github.com/repos/OpenWaterAnalytics/EPANET/issues/86/events","html_url":"https://github.com/OpenWaterAnalytics/EPANET/pull/86","id":184200947,"number":86,"title":"add function ENsetdemandpattern","user":{"login":"Mariosmsk","id":2945956,"avatar_url":"https://avatars.githubusercontent.com/u/2945956?v=3","gravatar_id":"","url":"https://api.github.com/users/Mariosmsk","html_url":"https://github.com/Mariosmsk","followers_url":"https://api.github.com/users/Mariosmsk/followers","following_url":"https://api.github.com/users/Mariosmsk/following{/other_user}","gists_url":"https://api.github.com/users/Mariosmsk/gists{/gist_id}","starred_url":"https://api.github.com/users/Mariosmsk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Mariosmsk/subscriptions","organizations_url":"https://api.github.com/users/Mariosmsk/orgs","repos_url":"https://api.github.com/users/Mariosmsk/repos","events_url":"https://api.github.com/users/Mariosmsk/events{/privacy}","received_events_url":"https://api.github.com/users/Mariosmsk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-10-20T11:13:28Z","updated_at":"2016-10-26T19:21:48Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenWaterAnalytics/EPANET/pulls/86","html_url":"https://github.com/OpenWaterAnalytics/EPANET/pull/86","diff_url":"https://github.com/OpenWaterAnalytics/EPANET/pull/86.diff","patch_url":"https://github.com/OpenWaterAnalytics/EPANET/pull/86.patch"},"body":""},"comment":{"url":"https://api.github.com/repos/OpenWaterAnalytics/EPANET/issues/comments/256450559","html_url":"https://github.com/OpenWaterAnalytics/EPANET/pull/86#issuecomment-256450559","issue_url":"https://api.github.com/repos/OpenWaterAnalytics/EPANET/issues/86","id":256450559,"user":{"login":"eladsal","id":1942312,"avatar_url":"https://avatars.githubusercontent.com/u/1942312?v=3","gravatar_id":"","url":"https://api.github.com/users/eladsal","html_url":"https://github.com/eladsal","followers_url":"https://api.github.com/users/eladsal/followers","following_url":"https://api.github.com/users/eladsal/following{/other_user}","gists_url":"https://api.github.com/users/eladsal/gists{/gist_id}","starred_url":"https://api.github.com/users/eladsal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eladsal/subscriptions","organizations_url":"https://api.github.com/users/eladsal/orgs","repos_url":"https://api.github.com/users/eladsal/repos","events_url":"https://api.github.com/users/eladsal/events{/privacy}","received_events_url":"https://api.github.com/users/eladsal/received_events","type":"User","site_admin":false},"created_at":"2016-10-26T19:21:48Z","updated_at":"2016-10-26T19:21:48Z","body":"The dll crash @Mariosmsk mentioned accrued when the `demandIdx` was larger than the number of demand categories.\r\n\r\n@Mariosmsk, I see how the use of the `ENgetnumdemands` function helps but I wonder if we need these two loops over the demand categories (on in the original function and one in `ENgetnumdemands`). Maybe there is a way to change the stopping criteria.\r\n\r\nAs I side note, I have noticed that the Toolkit doesn't load (and saves) the categories names. Hope we can make that happen."}}
{"actor":{"display_login":"eladsal"}}