{"action":"created","issue":{"url":"https://api.github.com/repos/radar-parlamentar/radar/issues/193","repository_url":"https://api.github.com/repos/radar-parlamentar/radar","labels_url":"https://api.github.com/repos/radar-parlamentar/radar/issues/193/labels{/name}","comments_url":"https://api.github.com/repos/radar-parlamentar/radar/issues/193/comments","events_url":"https://api.github.com/repos/radar-parlamentar/radar/issues/193/events","html_url":"https://github.com/radar-parlamentar/radar/issues/193","id":23505000,"number":193,"title":"Periodicidade mensal","user":{"login":"leonardofl","id":362813,"avatar_url":"https://avatars.githubusercontent.com/u/362813?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardofl","html_url":"https://github.com/leonardofl","followers_url":"https://api.github.com/users/leonardofl/followers","following_url":"https://api.github.com/users/leonardofl/following{/other_user}","gists_url":"https://api.github.com/users/leonardofl/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardofl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardofl/subscriptions","organizations_url":"https://api.github.com/users/leonardofl/orgs","repos_url":"https://api.github.com/users/leonardofl/repos","events_url":"https://api.github.com/users/leonardofl/events{/privacy}","received_events_url":"https://api.github.com/users/leonardofl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/radar-parlamentar/radar/labels/bugs","name":"bugs","color":"e10c02"},{"url":"https://api.github.com/repos/radar-parlamentar/radar/labels/f%C3%A1cil","name":"fácil","color":"eb6420"},{"url":"https://api.github.com/repos/radar-parlamentar/radar/labels/priorit%C3%A1rio","name":"prioritário","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2013-11-29T18:30:43Z","updated_at":"2016-09-02T21:08:21Z","closed_at":null,"body":"Testei periodicidade mensal com o senado e com a cmsp e deu pau."},"comment":{"url":"https://api.github.com/repos/radar-parlamentar/radar/issues/comments/244487778","html_url":"https://github.com/radar-parlamentar/radar/issues/193#issuecomment-244487778","issue_url":"https://api.github.com/repos/radar-parlamentar/radar/issues/193","id":244487778,"user":{"login":"leonardofl","id":362813,"avatar_url":"https://avatars.githubusercontent.com/u/362813?v=3","gravatar_id":"","url":"https://api.github.com/users/leonardofl","html_url":"https://github.com/leonardofl","followers_url":"https://api.github.com/users/leonardofl/followers","following_url":"https://api.github.com/users/leonardofl/following{/other_user}","gists_url":"https://api.github.com/users/leonardofl/gists{/gist_id}","starred_url":"https://api.github.com/users/leonardofl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leonardofl/subscriptions","organizations_url":"https://api.github.com/users/leonardofl/orgs","repos_url":"https://api.github.com/users/leonardofl/repos","events_url":"https://api.github.com/users/leonardofl/events{/privacy}","received_events_url":"https://api.github.com/users/leonardofl/received_events","type":"User","site_admin":false},"created_at":"2016-09-02T21:08:21Z","updated_at":"2016-09-02T21:08:21Z","body":"Erro:\r\n\r\n```\r\n######################## Exception ###########################\r\nTraceback (most recent call last):\r\n\r\n  File \"/home/leonardo/workspaces/radar/venv/lib/python2.7/site-packages/django/core/handlers/base.py\", line 111, in get_response\r\n    response = callback(request, *callback_args, **callback_kwargs)\r\n\r\n  File \"/home/leonardo/workspaces/radar/radar/radar_parlamentar/analises/views.py\", line 81, in json_analise\r\n    analise_temporal = analisador.get_analise_temporal()\r\n\r\n  File \"/home/leonardo/workspaces/radar/radar/radar_parlamentar/analises/analise.py\", line 83, in get_analise_temporal\r\n    self._faz_analises()\r\n\r\n  File \"/home/leonardo/workspaces/radar/radar/radar_parlamentar/analises/analise.py\", line 107, in _faz_analises\r\n    analisePeriodo = analisadorPeriodo.analisa()\r\n\r\n  File \"/home/leonardo/workspaces/radar/radar/radar_parlamentar/analises/analise.py\", line 205, in analisa\r\n    self._calcula_parlamentares_2d()\r\n\r\n  File \"/home/leonardo/workspaces/radar/radar/radar_parlamentar/analises/analise.py\", line 237, in _calcula_parlamentares_2d\r\n    self.coordenadas_parlamentares = self._pca_parlamentares()\r\n\r\n  File \"/home/leonardo/workspaces/radar/radar/radar_parlamentar/analises/analise.py\", line 269, in _pca_parlamentares\r\n    self.pca = pca.PCA(matriz, fraction=1)  # faz o pca\r\n\r\n  File \"/home/leonardo/workspaces/radar/radar/radar_parlamentar/analises/pca.py\", line 78, in __init__\r\n    self.U, self.d, self.Vt = np.linalg.svd(A, full_matrices=False)\r\n\r\n  File \"/home/leonardo/workspaces/radar/venv/lib/python2.7/site-packages/numpy/linalg/linalg.py\", line 1274, in svd\r\n    _assertNonEmpty(a)\r\n\r\n  File \"/home/leonardo/workspaces/radar/venv/lib/python2.7/site-packages/numpy/linalg/linalg.py\", line 170, in _assertNonEmpty\r\n    raise LinAlgError(\"Arrays cannot be empty\")\r\n\r\nLinAlgError: Arrays cannot be empty\r\n\r\n##############################################################\r\n[01/Sep/2016 19:09:18] \"GET /analises/json_analise/cdep/MES/ HTTP/1.1\" 500 91124\r\n######################## Exception ###########################\r\nTraceback (most recent call last):\r\n\r\n  File \"/home/leonardo/workspaces/radar/venv/lib/python2.7/site-packages/django/core/handlers/base.py\", line 111, in get_response\r\n    response = callback(request, *callback_args, **callback_kwargs)\r\n\r\n  File \"/home/leonardo/workspaces/radar/radar/radar_parlamentar/radar_parlamentar/views.py\", line 151, in dados_utilizados\r\n    time = os.path.getmtime(dump_file_path)\r\n\r\n  File \"/home/leonardo/workspaces/radar/venv/lib/python2.7/genericpath.py\", line 62, in getmtime\r\n    return os.stat(filename).st_mtime\r\n\r\nTypeError: coercing to Unicode: need string or buffer, NoneType found\r\n\r\n##############################################################\r\n[01/Sep/2016 19:21:10] \"GET /dados/ HTTP/1.1\" 500 65197\r\n\r\n\r\n```"}}
{"actor":{"display_login":"leonardofl"}}