{"action":"closed","issue":{"url":"https://api.github.com/repos/deeplook/sparklines/issues/12","repository_url":"https://api.github.com/repos/deeplook/sparklines","labels_url":"https://api.github.com/repos/deeplook/sparklines/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/deeplook/sparklines/issues/12/comments","events_url":"https://api.github.com/repos/deeplook/sparklines/issues/12/events","html_url":"https://github.com/deeplook/sparklines/issues/12","id":189523372,"number":12,"title":"null or None data points cause exceptions","user":{"login":"talwrii","id":2955454,"avatar_url":"https://avatars.githubusercontent.com/u/2955454?v=3","gravatar_id":"","url":"https://api.github.com/users/talwrii","html_url":"https://github.com/talwrii","followers_url":"https://api.github.com/users/talwrii/followers","following_url":"https://api.github.com/users/talwrii/following{/other_user}","gists_url":"https://api.github.com/users/talwrii/gists{/gist_id}","starred_url":"https://api.github.com/users/talwrii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talwrii/subscriptions","organizations_url":"https://api.github.com/users/talwrii/orgs","repos_url":"https://api.github.com/users/talwrii/repos","events_url":"https://api.github.com/users/talwrii/events{/privacy}","received_events_url":"https://api.github.com/users/talwrii/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-15T22:18:34Z","updated_at":"2016-11-16T21:57:25Z","closed_at":"2016-11-16T21:57:25Z","body":"```\r\n> sparklines 1 None 1 2\r\nTraceback (most recent call last):\r\n  File \"/home/tom/.local/bin/sparklines\", line 11, in <module>\r\n    load_entry_point('sparklines', 'console_scripts', 'sparklines')()\r\n  File \"/home/tom/active/sparklines/sparklines/__main__.py\", line 137, in main\r\n    wrap=args.wrap):\r\n  File \"/home/tom/active/sparklines/sparklines/sparklines.py\", line 142, in sparklines\r\n    values = scale_values(numbers, num_lines=num_lines, minimum=minimum, maximum=maximum)\r\n  File \"/home/tom/active/sparklines/sparklines/sparklines.py\", line 91, in scale_values\r\n    numbers = [max(min(n, max_), min_) for n in numbers]\r\n  File \"/home/tom/active/sparklines/sparklines/sparklines.py\", line 91, in <listcomp>\r\n    numbers = [max(min(n, max_), min_) for n in numbers]\r\nTypeError: unorderable types: float() < NoneType()\r\n-\r\n```\r\n\r\nReferenced in: \r\nhttps://github.com/deeplook/sparklines/pull/11#issuecomment-260305867"}}
{"actor":{"display_login":"talwrii"}}