{"action":"opened","issue":{"url":"https://api.github.com/repos/Gordon999/Pi-AutoGuider/issues/7","repository_url":"https://api.github.com/repos/Gordon999/Pi-AutoGuider","labels_url":"https://api.github.com/repos/Gordon999/Pi-AutoGuider/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/Gordon999/Pi-AutoGuider/issues/7/comments","events_url":"https://api.github.com/repos/Gordon999/Pi-AutoGuider/issues/7/events","html_url":"https://github.com/Gordon999/Pi-AutoGuider/issues/7","id":136337270,"number":7,"title":"ave variable","user":{"login":"shrx","id":810337,"avatar_url":"https://avatars.githubusercontent.com/u/810337?v=3","gravatar_id":"","url":"https://api.github.com/users/shrx","html_url":"https://github.com/shrx","followers_url":"https://api.github.com/users/shrx/followers","following_url":"https://api.github.com/users/shrx/following{/other_user}","gists_url":"https://api.github.com/users/shrx/gists{/gist_id}","starred_url":"https://api.github.com/users/shrx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shrx/subscriptions","organizations_url":"https://api.github.com/users/shrx/orgs","repos_url":"https://api.github.com/users/shrx/repos","events_url":"https://api.github.com/users/shrx/events{/privacy}","received_events_url":"https://api.github.com/users/shrx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-25T10:00:27Z","updated_at":"2016-02-25T10:00:27Z","closed_at":null,"body":"The `ave` variable is set to 0 at the beginning of the code and then never changes.\r\nBecause of this, some of the code is reduntant, for example:\r\n```\r\nif ttot > 1 and ave and aveon and acorrect > 0 and avevcor > 0 and ymax == avemax:\r\n            acorrect = avevcor\r\n```\r\nwill never execute because `ave` is always 0 (false). Do you plan to use this variable in the future, or should it be removed?"}}