{"action":"created","issue":{"url":"https://api.github.com/repos/AlexandreDecan/python-intervals/issues/5","repository_url":"https://api.github.com/repos/AlexandreDecan/python-intervals","labels_url":"https://api.github.com/repos/AlexandreDecan/python-intervals/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/AlexandreDecan/python-intervals/issues/5/comments","events_url":"https://api.github.com/repos/AlexandreDecan/python-intervals/issues/5/events","html_url":"https://github.com/AlexandreDecan/python-intervals/issues/5","id":385771406,"node_id":"MDU6SXNzdWUzODU3NzE0MDY=","number":5,"title":"Comparison between  'Timestamp' with type '_PInf'","user":{"login":"gfitas","id":11516298,"node_id":"MDQ6VXNlcjExNTE2Mjk4","avatar_url":"https://avatars3.githubusercontent.com/u/11516298?v=4","gravatar_id":"","url":"https://api.github.com/users/gfitas","html_url":"https://github.com/gfitas","followers_url":"https://api.github.com/users/gfitas/followers","following_url":"https://api.github.com/users/gfitas/following{/other_user}","gists_url":"https://api.github.com/users/gfitas/gists{/gist_id}","starred_url":"https://api.github.com/users/gfitas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gfitas/subscriptions","organizations_url":"https://api.github.com/users/gfitas/orgs","repos_url":"https://api.github.com/users/gfitas/repos","events_url":"https://api.github.com/users/gfitas/events{/privacy}","received_events_url":"https://api.github.com/users/gfitas/received_events","type":"User","site_admin":false},"labels":[{"id":888622754,"node_id":"MDU6TGFiZWw4ODg2MjI3NTQ=","url":"https://api.github.com/repos/AlexandreDecan/python-intervals/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-11-29T14:49:05Z","updated_at":"2018-12-14T16:20:09Z","closed_at":"2018-12-01T08:21:10Z","author_association":"NONE","body":"Hi, \r\nFirst off all, an amazing thank you for this library\r\n \r\nI would like to subtract two intervals of panda's timestamp.\r\nBut it seems to crash when it tries to compare infinite value with a timestamp \r\n```\r\na = I.closed(Timestamp('2018-11-11 09:00:00'),Timestamp('2018-11-11 17:00:00'))\r\nb = I.closed(Timestamp('2018-11-11 10:00:00'),Timestamp('2018-11-11 12:00:00'))\r\nc = a - b\r\n```\r\n\r\nHere is the traceback \r\n```  \r\nFile \"\\lib\\site-packages\\intervals.py\", line 753, in __sub__\r\n    return self & ~other\r\nFile \"\\lib\\site-packages\\intervals.py\", line 745, in __invert__\r\n    complements = [~i for i in self._intervals]\r\nFile \"\\lib\\site-packages\\intervals.py\", line 745, in <listcomp>\r\n    complements = [~i for i in self._intervals]\r\nFile \"\\lib\\site-packages\\intervals.py\", line 432, in __invert__\r\n    AtomicInterval(inverted_right, self._upper, inf, OPEN)\r\nFile \"\\lib\\site-packages\\intervals.py\", line 242, in __init__\r\n    if self.is_empty():\r\nFile \"\\lib\\site-packages\\intervals.py\", line 283, in is_empty\r\n    self._lower > self._upper or\r\nFile \"pandas\\_libs\\tslibs\\timestamps.pyx\", line 170, in pandas._libs.tslibs.timestamps._Timestamp.__richcmp__\r\nTypeError: Cannot compare type 'Timestamp' with type '_PInf'\r\n```\r\n\r\nThank you in advance"},"comment":{"url":"https://api.github.com/repos/AlexandreDecan/python-intervals/issues/comments/447374734","html_url":"https://github.com/AlexandreDecan/python-intervals/issues/5#issuecomment-447374734","issue_url":"https://api.github.com/repos/AlexandreDecan/python-intervals/issues/5","id":447374734,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NzM3NDczNA==","user":{"login":"AlexandreDecan","id":4992216,"node_id":"MDQ6VXNlcjQ5OTIyMTY=","avatar_url":"https://avatars1.githubusercontent.com/u/4992216?v=4","gravatar_id":"","url":"https://api.github.com/users/AlexandreDecan","html_url":"https://github.com/AlexandreDecan","followers_url":"https://api.github.com/users/AlexandreDecan/followers","following_url":"https://api.github.com/users/AlexandreDecan/following{/other_user}","gists_url":"https://api.github.com/users/AlexandreDecan/gists{/gist_id}","starred_url":"https://api.github.com/users/AlexandreDecan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlexandreDecan/subscriptions","organizations_url":"https://api.github.com/users/AlexandreDecan/orgs","repos_url":"https://api.github.com/users/AlexandreDecan/repos","events_url":"https://api.github.com/users/AlexandreDecan/events{/privacy}","received_events_url":"https://api.github.com/users/AlexandreDecan/received_events","type":"User","site_admin":false},"created_at":"2018-12-14T16:20:09Z","updated_at":"2018-12-14T16:20:09Z","author_association":"OWNER","body":"FYI, the change in pandas is delayed to release 0.25."}}
{"actor":{"display_login":"AlexandreDecan"}}