{"action":"created","issue":{"url":"https://api.github.com/repos/forrestbao/pyeeg/issues/14","labels_url":"https://api.github.com/repos/forrestbao/pyeeg/issues/14/labels{/name}","comments_url":"https://api.github.com/repos/forrestbao/pyeeg/issues/14/comments","events_url":"https://api.github.com/repos/forrestbao/pyeeg/issues/14/events","html_url":"https://github.com/forrestbao/pyeeg/issues/14","id":124941274,"number":14,"title":"NameError: global name 'np' is not defined","user":{"login":"luiscruz","id":1080714,"avatar_url":"https://avatars.githubusercontent.com/u/1080714?v=3","gravatar_id":"","url":"https://api.github.com/users/luiscruz","html_url":"https://github.com/luiscruz","followers_url":"https://api.github.com/users/luiscruz/followers","following_url":"https://api.github.com/users/luiscruz/following{/other_user}","gists_url":"https://api.github.com/users/luiscruz/gists{/gist_id}","starred_url":"https://api.github.com/users/luiscruz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luiscruz/subscriptions","organizations_url":"https://api.github.com/users/luiscruz/orgs","repos_url":"https://api.github.com/users/luiscruz/repos","events_url":"https://api.github.com/users/luiscruz/events{/privacy}","received_events_url":"https://api.github.com/users/luiscruz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-01-05T10:50:35Z","updated_at":"2016-01-05T11:08:09Z","closed_at":null,"body":"I have installed pyeeg using pip. This is my line in requirements.txt:\r\n\r\n    -e git+https://github.com/forrestbao/pyeeg.git#egg=pyeeg\r\n\r\nWhen I use pyeeg.ap_entropy I am encountering the following error:\r\n\r\n    NameError: global name 'np' is not defined\r\n\r\nI have numpy installed, I'm importing it as np, and it works fine.\r\nDo you have any idea what this might be?\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/forrestbao/pyeeg/issues/comments/168973331","html_url":"https://github.com/forrestbao/pyeeg/issues/14#issuecomment-168973331","issue_url":"https://api.github.com/repos/forrestbao/pyeeg/issues/14","id":168973331,"user":{"login":"Borzou","id":12940102,"avatar_url":"https://avatars.githubusercontent.com/u/12940102?v=3","gravatar_id":"","url":"https://api.github.com/users/Borzou","html_url":"https://github.com/Borzou","followers_url":"https://api.github.com/users/Borzou/followers","following_url":"https://api.github.com/users/Borzou/following{/other_user}","gists_url":"https://api.github.com/users/Borzou/gists{/gist_id}","starred_url":"https://api.github.com/users/Borzou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Borzou/subscriptions","organizations_url":"https://api.github.com/users/Borzou/orgs","repos_url":"https://api.github.com/users/Borzou/repos","events_url":"https://api.github.com/users/Borzou/events{/privacy}","received_events_url":"https://api.github.com/users/Borzou/received_events","type":"User","site_admin":false},"created_at":"2016-01-05T11:08:09Z","updated_at":"2016-01-05T11:08:09Z","body":"Hi Luis,\n\nYes you are right. It seems that I missed changing nps in the sample\nentropy and the approximate entropy. Will fix that asap. Thanks for sharing\nit. In the meanwhile you can fix them for your own project. Please let us\nknow if you find any other problems.\n\nThanks,\nBest Wishes,\nBorzou\n\nOn Tuesday, January 5, 2016, Luis Cruz <notifications@github.com> wrote:\n\n> I guess here\n> https://github.com/forrestbao/pyeeg/blob/master/pyeeg/__init__.py#L532\n> The code should consistently use numpy instead of np.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/forrestbao/pyeeg/issues/14#issuecomment-168972334>.\n>\n"}}