{"action":"created","comment":{"url":"https://api.github.com/repos/StingraySoftware/stingray/pulls/comments/72577306","id":72577306,"diff_hunk":"@@ -328,3 +328,70 @@ def get_btis(gtis, start_time=None, stop_time=None):\n def gti_len(gti):\n     \"\"\"Return the total good time from a list of GTIs.\"\"\"\n     return np.sum([g[1] - g[0] for g in gti])\n+\n+def check_separate(gti0, gti1):\n+    \"\"\"\n+    Check if two GTIs are mutually exclusive.\n+","path":"stingray/gti.py","position":8,"original_position":8,"commit_id":"23f5ff11927b18260dd21aee32693058a73cf93c","original_commit_id":"23f5ff11927b18260dd21aee32693058a73cf93c","user":{"login":"matteobachetti","id":7190189,"avatar_url":"https://avatars.githubusercontent.com/u/7190189?v=3","gravatar_id":"","url":"https://api.github.com/users/matteobachetti","html_url":"https://github.com/matteobachetti","followers_url":"https://api.github.com/users/matteobachetti/followers","following_url":"https://api.github.com/users/matteobachetti/following{/other_user}","gists_url":"https://api.github.com/users/matteobachetti/gists{/gist_id}","starred_url":"https://api.github.com/users/matteobachetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matteobachetti/subscriptions","organizations_url":"https://api.github.com/users/matteobachetti/orgs","repos_url":"https://api.github.com/users/matteobachetti/repos","events_url":"https://api.github.com/users/matteobachetti/events{/privacy}","received_events_url":"https://api.github.com/users/matteobachetti/received_events","type":"User","site_admin":false},"body":"The docstring should describe more precisely what it actually does. We are not really testing if they are mutually exclusive, but if the two observations overlap. If we had an interval of the second GTI list in the middle of the other GTIs, the GTIs would be mutually exclusive but this function would return `False`.","created_at":"2016-07-28T07:43:51Z","updated_at":"2016-07-28T07:43:51Z","html_url":"https://github.com/StingraySoftware/stingray/pull/125#discussion_r72577306","pull_request_url":"https://api.github.com/repos/StingraySoftware/stingray/pulls/125","_links":{"self":{"href":"https://api.github.com/repos/StingraySoftware/stingray/pulls/comments/72577306"},"html":{"href":"https://github.com/StingraySoftware/stingray/pull/125#discussion_r72577306"},"pull_request":{"href":"https://api.github.com/repos/StingraySoftware/stingray/pulls/125"}}},"pull_request":{"url":"https://api.github.com/repos/StingraySoftware/stingray/pulls/125","id":78987265,"html_url":"https://github.com/StingraySoftware/stingray/pull/125","diff_url":"https://github.com/StingraySoftware/stingray/pull/125.diff","patch_url":"https://github.com/StingraySoftware/stingray/pull/125.patch","issue_url":"https://api.github.com/repos/StingraySoftware/stingray/issues/125","number":125,"state":"open","locked":false,"title":"EventList Modifications","user":{"login":"usmanwardag","id":8848723,"avatar_url":"https://avatars.githubusercontent.com/u/8848723?v=3","gravatar_id":"","url":"https://api.github.com/users/usmanwardag","html_url":"https://github.com/usmanwardag","followers_url":"https://api.github.com/users/usmanwardag/followers","following_url":"https://api.github.com/users/usmanwardag/following{/other_user}","gists_url":"https://api.github.com/users/usmanwardag/gists{/gist_id}","starred_url":"https://api.github.com/users/usmanwardag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usmanwardag/subscriptions","organizations_url":"https://api.github.com/users/usmanwardag/orgs","repos_url":"https://api.github.com/users/usmanwardag/repos","events_url":"https://api.github.com/users/usmanwardag/events{/privacy}","received_events_url":"https://api.github.com/users/usmanwardag/received_events","type":"User","site_admin":false},"body":"This PR:\r\n- Corrects a few bugs that I discovered during testing.\r\n- Adds a method in `events.py` to add event lists.\r\n- Adds corresponding helper functions in `utils.py` and `gti.py`\n\n<!-- Reviewable:start -->\n---\nThis change is [<img src=\"https://reviewable.io/review_button.svg\" height=\"34\" align=\"absmiddle\" alt=\"Reviewable\"/>](https://reviewable.io/reviews/stingraysoftware/stingray/125)\n<!-- Reviewable:end -->\n","created_at":"2016-07-27T08:53:04Z","updated_at":"2016-07-28T07:43:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c293b176acdb12c264ea32a62d81389f10c2b1b0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/StingraySoftware/stingray/pulls/125/commits","review_comments_url":"https://api.github.com/repos/StingraySoftware/stingray/pulls/125/comments","review_comment_url":"https://api.github.com/repos/StingraySoftware/stingray/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StingraySoftware/stingray/issues/125/comments","statuses_url":"https://api.github.com/repos/StingraySoftware/stingray/statuses/23f5ff11927b18260dd21aee32693058a73cf93c","head":{"label":"usmanwardag:events_functionalities","ref":"events_functionalities","sha":"23f5ff11927b18260dd21aee32693058a73cf93c","user":{"login":"usmanwardag","id":8848723,"avatar_url":"https://avatars.githubusercontent.com/u/8848723?v=3","gravatar_id":"","url":"https://api.github.com/users/usmanwardag","html_url":"https://github.com/usmanwardag","followers_url":"https://api.github.com/users/usmanwardag/followers","following_url":"https://api.github.com/users/usmanwardag/following{/other_user}","gists_url":"https://api.github.com/users/usmanwardag/gists{/gist_id}","starred_url":"https://api.github.com/users/usmanwardag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usmanwardag/subscriptions","organizations_url":"https://api.github.com/users/usmanwardag/orgs","repos_url":"https://api.github.com/users/usmanwardag/repos","events_url":"https://api.github.com/users/usmanwardag/events{/privacy}","received_events_url":"https://api.github.com/users/usmanwardag/received_events","type":"User","site_admin":false},"repo":{"id":53238697,"name":"stingray","full_name":"usmanwardag/stingray","owner":{"login":"usmanwardag","id":8848723,"avatar_url":"https://avatars.githubusercontent.com/u/8848723?v=3","gravatar_id":"","url":"https://api.github.com/users/usmanwardag","html_url":"https://github.com/usmanwardag","followers_url":"https://api.github.com/users/usmanwardag/followers","following_url":"https://api.github.com/users/usmanwardag/following{/other_user}","gists_url":"https://api.github.com/users/usmanwardag/gists{/gist_id}","starred_url":"https://api.github.com/users/usmanwardag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/usmanwardag/subscriptions","organizations_url":"https://api.github.com/users/usmanwardag/orgs","repos_url":"https://api.github.com/users/usmanwardag/repos","events_url":"https://api.github.com/users/usmanwardag/events{/privacy}","received_events_url":"https://api.github.com/users/usmanwardag/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/usmanwardag/stingray","description":"Time Series Methods For Astronomical X-ray Data That Aren''t Fishy At All!","fork":true,"url":"https://api.github.com/repos/usmanwardag/stingray","forks_url":"https://api.github.com/repos/usmanwardag/stingray/forks","keys_url":"https://api.github.com/repos/usmanwardag/stingray/keys{/key_id}","collaborators_url":"https://api.github.com/repos/usmanwardag/stingray/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/usmanwardag/stingray/teams","hooks_url":"https://api.github.com/repos/usmanwardag/stingray/hooks","issue_events_url":"https://api.github.com/repos/usmanwardag/stingray/issues/events{/number}","events_url":"https://api.github.com/repos/usmanwardag/stingray/events","assignees_url":"https://api.github.com/repos/usmanwardag/stingray/assignees{/user}","branches_url":"https://api.github.com/repos/usmanwardag/stingray/branches{/branch}","tags_url":"https://api.github.com/repos/usmanwardag/stingray/tags","blobs_url":"https://api.github.com/repos/usmanwardag/stingray/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/usmanwardag/stingray/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/usmanwardag/stingray/git/refs{/sha}","trees_url":"https://api.github.com/repos/usmanwardag/stingray/git/trees{/sha}","statuses_url":"https://api.github.com/repos/usmanwardag/stingray/statuses/{sha}","languages_url":"https://api.github.com/repos/usmanwardag/stingray/languages","stargazers_url":"https://api.github.com/repos/usmanwardag/stingray/stargazers","contributors_url":"https://api.github.com/repos/usmanwardag/stingray/contributors","subscribers_url":"https://api.github.com/repos/usmanwardag/stingray/subscribers","subscription_url":"https://api.github.com/repos/usmanwardag/stingray/subscription","commits_url":"https://api.github.com/repos/usmanwardag/stingray/commits{/sha}","git_commits_url":"https://api.github.com/repos/usmanwardag/stingray/git/commits{/sha}","comments_url":"https://api.github.com/repos/usmanwardag/stingray/comments{/number}","issue_comment_url":"https://api.github.com/repos/usmanwardag/stingray/issues/comments{/number}","contents_url":"https://api.github.com/repos/usmanwardag/stingray/contents/{+path}","compare_url":"https://api.github.com/repos/usmanwardag/stingray/compare/{base}...{head}","merges_url":"https://api.github.com/repos/usmanwardag/stingray/merges","archive_url":"https://api.github.com/repos/usmanwardag/stingray/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/usmanwardag/stingray/downloads","issues_url":"https://api.github.com/repos/usmanwardag/stingray/issues{/number}","pulls_url":"https://api.github.com/repos/usmanwardag/stingray/pulls{/number}","milestones_url":"https://api.github.com/repos/usmanwardag/stingray/milestones{/number}","notifications_url":"https://api.github.com/repos/usmanwardag/stingray/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/usmanwardag/stingray/labels{/name}","releases_url":"https://api.github.com/repos/usmanwardag/stingray/releases{/id}","deployments_url":"https://api.github.com/repos/usmanwardag/stingray/deployments","created_at":"2016-03-06T05:05:14Z","updated_at":"2016-03-06T05:05:15Z","pushed_at":"2016-07-27T14:50:01Z","git_url":"git://github.com/usmanwardag/stingray.git","ssh_url":"git@github.com:usmanwardag/stingray.git","clone_url":"https://github.com/usmanwardag/stingray.git","svn_url":"https://github.com/usmanwardag/stingray","homepage":null,"size":1559,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"StingraySoftware:master","ref":"master","sha":"e844bcef7843c2bfc242e86c9fba705c894e0092","user":{"login":"StingraySoftware","id":17048750,"avatar_url":"https://avatars.githubusercontent.com/u/17048750?v=3","gravatar_id":"","url":"https://api.github.com/users/StingraySoftware","html_url":"https://github.com/StingraySoftware","followers_url":"https://api.github.com/users/StingraySoftware/followers","following_url":"https://api.github.com/users/StingraySoftware/following{/other_user}","gists_url":"https://api.github.com/users/StingraySoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/StingraySoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StingraySoftware/subscriptions","organizations_url":"https://api.github.com/users/StingraySoftware/orgs","repos_url":"https://api.github.com/users/StingraySoftware/repos","events_url":"https://api.github.com/users/StingraySoftware/events{/privacy}","received_events_url":"https://api.github.com/users/StingraySoftware/received_events","type":"Organization","site_admin":false},"repo":{"id":43449839,"name":"stingray","full_name":"StingraySoftware/stingray","owner":{"login":"StingraySoftware","id":17048750,"avatar_url":"https://avatars.githubusercontent.com/u/17048750?v=3","gravatar_id":"","url":"https://api.github.com/users/StingraySoftware","html_url":"https://github.com/StingraySoftware","followers_url":"https://api.github.com/users/StingraySoftware/followers","following_url":"https://api.github.com/users/StingraySoftware/following{/other_user}","gists_url":"https://api.github.com/users/StingraySoftware/gists{/gist_id}","starred_url":"https://api.github.com/users/StingraySoftware/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StingraySoftware/subscriptions","organizations_url":"https://api.github.com/users/StingraySoftware/orgs","repos_url":"https://api.github.com/users/StingraySoftware/repos","events_url":"https://api.github.com/users/StingraySoftware/events{/privacy}","received_events_url":"https://api.github.com/users/StingraySoftware/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StingraySoftware/stingray","description":"Time Series Methods For Astronomical X-ray Data That Aren''t Fishy At All!","fork":false,"url":"https://api.github.com/repos/StingraySoftware/stingray","forks_url":"https://api.github.com/repos/StingraySoftware/stingray/forks","keys_url":"https://api.github.com/repos/StingraySoftware/stingray/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StingraySoftware/stingray/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StingraySoftware/stingray/teams","hooks_url":"https://api.github.com/repos/StingraySoftware/stingray/hooks","issue_events_url":"https://api.github.com/repos/StingraySoftware/stingray/issues/events{/number}","events_url":"https://api.github.com/repos/StingraySoftware/stingray/events","assignees_url":"https://api.github.com/repos/StingraySoftware/stingray/assignees{/user}","branches_url":"https://api.github.com/repos/StingraySoftware/stingray/branches{/branch}","tags_url":"https://api.github.com/repos/StingraySoftware/stingray/tags","blobs_url":"https://api.github.com/repos/StingraySoftware/stingray/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StingraySoftware/stingray/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StingraySoftware/stingray/git/refs{/sha}","trees_url":"https://api.github.com/repos/StingraySoftware/stingray/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StingraySoftware/stingray/statuses/{sha}","languages_url":"https://api.github.com/repos/StingraySoftware/stingray/languages","stargazers_url":"https://api.github.com/repos/StingraySoftware/stingray/stargazers","contributors_url":"https://api.github.com/repos/StingraySoftware/stingray/contributors","subscribers_url":"https://api.github.com/repos/StingraySoftware/stingray/subscribers","subscription_url":"https://api.github.com/repos/StingraySoftware/stingray/subscription","commits_url":"https://api.github.com/repos/StingraySoftware/stingray/commits{/sha}","git_commits_url":"https://api.github.com/repos/StingraySoftware/stingray/git/commits{/sha}","comments_url":"https://api.github.com/repos/StingraySoftware/stingray/comments{/number}","issue_comment_url":"https://api.github.com/repos/StingraySoftware/stingray/issues/comments{/number}","contents_url":"https://api.github.com/repos/StingraySoftware/stingray/contents/{+path}","compare_url":"https://api.github.com/repos/StingraySoftware/stingray/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StingraySoftware/stingray/merges","archive_url":"https://api.github.com/repos/StingraySoftware/stingray/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StingraySoftware/stingray/downloads","issues_url":"https://api.github.com/repos/StingraySoftware/stingray/issues{/number}","pulls_url":"https://api.github.com/repos/StingraySoftware/stingray/pulls{/number}","milestones_url":"https://api.github.com/repos/StingraySoftware/stingray/milestones{/number}","notifications_url":"https://api.github.com/repos/StingraySoftware/stingray/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StingraySoftware/stingray/labels{/name}","releases_url":"https://api.github.com/repos/StingraySoftware/stingray/releases{/id}","deployments_url":"https://api.github.com/repos/StingraySoftware/stingray/deployments","created_at":"2015-09-30T18:04:33Z","updated_at":"2016-07-27T19:48:51Z","pushed_at":"2016-07-27T14:50:08Z","git_url":"git://github.com/StingraySoftware/stingray.git","ssh_url":"git@github.com:StingraySoftware/stingray.git","clone_url":"https://github.com/StingraySoftware/stingray.git","svn_url":"https://github.com/StingraySoftware/stingray","homepage":null,"size":1114,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":34,"mirror_url":null,"open_issues_count":36,"forks":34,"open_issues":36,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StingraySoftware/stingray/pulls/125"},"html":{"href":"https://github.com/StingraySoftware/stingray/pull/125"},"issue":{"href":"https://api.github.com/repos/StingraySoftware/stingray/issues/125"},"comments":{"href":"https://api.github.com/repos/StingraySoftware/stingray/issues/125/comments"},"review_comments":{"href":"https://api.github.com/repos/StingraySoftware/stingray/pulls/125/comments"},"review_comment":{"href":"https://api.github.com/repos/StingraySoftware/stingray/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StingraySoftware/stingray/pulls/125/commits"},"statuses":{"href":"https://api.github.com/repos/StingraySoftware/stingray/statuses/23f5ff11927b18260dd21aee32693058a73cf93c"}}}}
{"actor":{"display_login":"matteobachetti"}}