{"action":"created","issue":{"url":"https://api.github.com/repos/fxi/AccessMod_shiny/issues/104","labels_url":"https://api.github.com/repos/fxi/AccessMod_shiny/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/fxi/AccessMod_shiny/issues/104/comments","events_url":"https://api.github.com/repos/fxi/AccessMod_shiny/issues/104/events","html_url":"https://github.com/fxi/AccessMod_shiny/issues/104","id":127595991,"number":104,"title":"Priority 1 (Scaling up): process continues to run even if there is no more population to cover or if the population in the catchment area is below the min coverage capacity from the capacity table","user":{"login":"SteeveEbener","id":12602163,"avatar_url":"https://avatars.githubusercontent.com/u/12602163?v=3","gravatar_id":"","url":"https://api.github.com/users/SteeveEbener","html_url":"https://github.com/SteeveEbener","followers_url":"https://api.github.com/users/SteeveEbener/followers","following_url":"https://api.github.com/users/SteeveEbener/following{/other_user}","gists_url":"https://api.github.com/users/SteeveEbener/gists{/gist_id}","starred_url":"https://api.github.com/users/SteeveEbener/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteeveEbener/subscriptions","organizations_url":"https://api.github.com/users/SteeveEbener/orgs","repos_url":"https://api.github.com/users/SteeveEbener/repos","events_url":"https://api.github.com/users/SteeveEbener/events{/privacy}","received_events_url":"https://api.github.com/users/SteeveEbener/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fxi/AccessMod_shiny/labels/need%20feedback","name":"need feedback","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-20T03:23:42Z","updated_at":"2016-01-20T21:14:40Z","closed_at":null,"body":"The problem with the \"sum of population withing a radius\" suitability factor that selects only one suitable site (issue #103) also highlighted the fact that the process continues to run even if there is no more population to cover or if the population  in the catchment area is below the min coverage capacity from the capacity table.\r\n\r\nI am attaching one example of tCapacityStatNew table which shows the process continues to run after facility 6 while there is no more population to cover + I used a capacity table where the min population coverage capacity for the lowest health facility level was 1000 (capacity table also attached)  => the process continued and placed a \"small facility\" even if there was actually only 917 people to be covered.\r\n[tCapacityOut__Scale8.xlsx](https://github.com/fxi/AccessMod_shiny/files/96922/tCapacityOut__Scale8.xlsx)\r\n\r\n[tCapacityStatNew__Scale8.xlsx](https://github.com/fxi/AccessMod_shiny/files/96921/tCapacityStatNew__Scale8.xlsx)\r\n"},"comment":{"url":"https://api.github.com/repos/fxi/AccessMod_shiny/issues/comments/173361186","html_url":"https://github.com/fxi/AccessMod_shiny/issues/104#issuecomment-173361186","issue_url":"https://api.github.com/repos/fxi/AccessMod_shiny/issues/104","id":173361186,"user":{"login":"SteeveEbener","id":12602163,"avatar_url":"https://avatars.githubusercontent.com/u/12602163?v=3","gravatar_id":"","url":"https://api.github.com/users/SteeveEbener","html_url":"https://github.com/SteeveEbener","followers_url":"https://api.github.com/users/SteeveEbener/followers","following_url":"https://api.github.com/users/SteeveEbener/following{/other_user}","gists_url":"https://api.github.com/users/SteeveEbener/gists{/gist_id}","starred_url":"https://api.github.com/users/SteeveEbener/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SteeveEbener/subscriptions","organizations_url":"https://api.github.com/users/SteeveEbener/orgs","repos_url":"https://api.github.com/users/SteeveEbener/repos","events_url":"https://api.github.com/users/SteeveEbener/events{/privacy}","received_events_url":"https://api.github.com/users/SteeveEbener/received_events","type":"User","site_admin":false},"created_at":"2016-01-20T21:14:40Z","updated_at":"2016-01-20T21:14:40Z","body":"I need you to look at the capacity table I attached to my issue to see that the minimum population value for a \"small\" facility has been set to 1000.\r\n\r\nIf you now look at health facility 7 in the attached tCapacityStatNew table you will see that despite the fact that the population within the given time was of 917 people AccessMod attributed a \"small\" health facility to this site => This should not be the case as the min and max capacity are conditional.\r\n\r\nThe only way I can think about to address this issue right now is to put a test on the capacity table to ensure that the lowest minimum capacity is equal to \"0\" => the process should not start and a warning message appear in the \"warning\" section as long as the table does not comply.\r\n\r\nRegarding the other issue, the problem should be solved once the treatment of suitability factors has been correct. The problem is occuring because AccessMod is right now selecting the same site multiple times (see issue #103)."}}