{"action":"created","issue":{"url":"https://api.github.com/repos/obspy/obspy/issues/1403","repository_url":"https://api.github.com/repos/obspy/obspy","labels_url":"https://api.github.com/repos/obspy/obspy/issues/1403/labels{/name}","comments_url":"https://api.github.com/repos/obspy/obspy/issues/1403/comments","events_url":"https://api.github.com/repos/obspy/obspy/issues/1403/events","html_url":"https://github.com/obspy/obspy/issues/1403","id":154032846,"node_id":"MDU6SXNzdWUxNTQwMzI4NDY=","number":1403,"title":"Stream.get_gaps() giving wrong results for some files","user":{"login":"megies","id":1842780,"node_id":"MDQ6VXNlcjE4NDI3ODA=","avatar_url":"https://avatars1.githubusercontent.com/u/1842780?v=4","gravatar_id":"","url":"https://api.github.com/users/megies","html_url":"https://github.com/megies","followers_url":"https://api.github.com/users/megies/followers","following_url":"https://api.github.com/users/megies/following{/other_user}","gists_url":"https://api.github.com/users/megies/gists{/gist_id}","starred_url":"https://api.github.com/users/megies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megies/subscriptions","organizations_url":"https://api.github.com/users/megies/orgs","repos_url":"https://api.github.com/users/megies/repos","events_url":"https://api.github.com/users/megies/events{/privacy}","received_events_url":"https://api.github.com/users/megies/received_events","type":"User","site_admin":false},"labels":[{"id":36865675,"node_id":"MDU6TGFiZWwzNjg2NTY3NQ==","url":"https://api.github.com/repos/obspy/obspy/labels/.core","name":".core","color":"0b02e1","default":false},{"id":13498870,"node_id":"MDU6TGFiZWwxMzQ5ODg3MA==","url":"https://api.github.com/repos/obspy/obspy/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/obspy/obspy/milestones/16","html_url":"https://github.com/obspy/obspy/milestone/16","labels_url":"https://api.github.com/repos/obspy/obspy/milestones/16/labels","id":2117206,"node_id":"MDk6TWlsZXN0b25lMjExNzIwNg==","number":16,"title":"1.2.0","description":"TRFKAP  --  The release formerly known as \"pre-EGU 2018 release\"","creator":{"login":"megies","id":1842780,"node_id":"MDQ6VXNlcjE4NDI3ODA=","avatar_url":"https://avatars1.githubusercontent.com/u/1842780?v=4","gravatar_id":"","url":"https://api.github.com/users/megies","html_url":"https://github.com/megies","followers_url":"https://api.github.com/users/megies/followers","following_url":"https://api.github.com/users/megies/following{/other_user}","gists_url":"https://api.github.com/users/megies/gists{/gist_id}","starred_url":"https://api.github.com/users/megies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megies/subscriptions","organizations_url":"https://api.github.com/users/megies/orgs","repos_url":"https://api.github.com/users/megies/repos","events_url":"https://api.github.com/users/megies/events{/privacy}","received_events_url":"https://api.github.com/users/megies/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":79,"state":"open","created_at":"2016-11-06T15:19:59Z","updated_at":"2019-02-20T12:08:50Z","due_on":"2019-02-14T08:00:00Z","closed_at":null},"comments":1,"created_at":"2016-05-10T15:15:47Z","updated_at":"2019-02-20T12:11:36Z","closed_at":null,"author_association":"MEMBER","body":"See details in https://github.com/obspy/obspy/pull/1141#issuecomment-218146707.\n"},"comment":{"url":"https://api.github.com/repos/obspy/obspy/issues/comments/465548935","html_url":"https://github.com/obspy/obspy/issues/1403#issuecomment-465548935","issue_url":"https://api.github.com/repos/obspy/obspy/issues/1403","id":465548935,"node_id":"MDEyOklzc3VlQ29tbWVudDQ2NTU0ODkzNQ==","user":{"login":"megies","id":1842780,"node_id":"MDQ6VXNlcjE4NDI3ODA=","avatar_url":"https://avatars1.githubusercontent.com/u/1842780?v=4","gravatar_id":"","url":"https://api.github.com/users/megies","html_url":"https://github.com/megies","followers_url":"https://api.github.com/users/megies/followers","following_url":"https://api.github.com/users/megies/following{/other_user}","gists_url":"https://api.github.com/users/megies/gists{/gist_id}","starred_url":"https://api.github.com/users/megies/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/megies/subscriptions","organizations_url":"https://api.github.com/users/megies/orgs","repos_url":"https://api.github.com/users/megies/repos","events_url":"https://api.github.com/users/megies/events{/privacy}","received_events_url":"https://api.github.com/users/megies/received_events","type":"User","site_admin":false},"created_at":"2019-02-20T12:11:36Z","updated_at":"2019-02-20T12:11:36Z","author_association":"MEMBER","body":"Here's some code to reproduce this:\r\n\r\n```python \r\nimport numpy as np\r\nfrom obspy import Trace, Stream, UTCDateTime\r\n\r\n\r\ndata = [ \r\n    (\"2016-01-07T00:00:00.008300Z\", 3010),\r\n    (\"2016-01-07T00:00:02.668393Z\", 686),\r\n    (\"2016-01-07T00:00:09.528393Z\", 4086),\r\n    (\"2016-01-07T00:00:30.108393Z\", 2028),\r\n    (\"2016-01-07T00:00:50.388393Z\", 6158),\r\n    (\"2016-01-07T00:00:57.248393Z\", 1370),\r\n    (\"2016-01-07T00:01:31.458393Z\", 4107),\r\n    (\"2016-01-07T00:01:51.968393Z\", 2056)]\r\n\r\nx = np.arange(30000)\r\ntr = Trace(x)\r\ntr.stats.starttime = UTCDateTime(\"2016-01-07T00:00:00.008300Z\")\r\ntr.stats.sampling_rate = 100 \r\n\r\nst = Stream()\r\nfor i, (start, numsamp) in enumerate(data):\r\n    tr_ = tr.slice(starttime=UTCDateTime(start))\r\n    tr_.data = tr_.data[:numsamp]\r\n    st.append(tr_)\r\n\r\nprint(st)\r\nst.plot()\r\nst.plot(automerge=False)\r\nst.print_gaps()\r\nst.merge(-1)\r\nst.plot()\r\nst.print_gaps()\r\n```\r\n```\r\n8 Trace(s) in Stream:\r\n... | 2016-01-07T00:00:00.008300Z - 2016-01-07T00:00:30.098300Z | 100.0 Hz, 3010 samples\r\n... | 2016-01-07T00:00:02.668300Z - 2016-01-07T00:00:09.518300Z | 100.0 Hz, 686 samples\r\n... | 2016-01-07T00:00:09.528300Z - 2016-01-07T00:00:50.378300Z | 100.0 Hz, 4086 samples\r\n... | 2016-01-07T00:00:30.108300Z - 2016-01-07T00:00:50.378300Z | 100.0 Hz, 2028 samples\r\n... | 2016-01-07T00:00:50.388300Z - 2016-01-07T00:01:51.958300Z | 100.0 Hz, 6158 samples\r\n... | 2016-01-07T00:00:57.248300Z - 2016-01-07T00:01:10.938300Z | 100.0 Hz, 1370 samples\r\n... | 2016-01-07T00:01:31.458300Z - 2016-01-07T00:02:12.518300Z | 100.0 Hz, 4107 samples\r\n... | 2016-01-07T00:01:51.968300Z - 2016-01-07T00:02:12.518300Z | 100.0 Hz, 2056 samples\r\n\r\nSource            Last Sample                 Next Sample                 Delta           Samples \r\n...               2016-01-07T00:00:09.518300Z 2016-01-07T00:00:02.668300Z -6.850000       -685    \r\n...               2016-01-07T00:00:50.378300Z 2016-01-07T00:00:30.108300Z -20.270000      -2027   \r\n...               2016-01-07T00:01:10.938300Z 2016-01-07T00:00:57.248300Z -13.690000      -1369   \r\n...               2016-01-07T00:01:10.938300Z 2016-01-07T00:01:31.458300Z 20.510000       2051    \r\n...               2016-01-07T00:02:12.518300Z 2016-01-07T00:01:51.968300Z -20.550000      -2055   \r\nTotal: 1 gap(s) and 4 overlap(s)\r\n\r\nSource            Last Sample                 Next Sample                 Delta           Samples \r\nTotal: 0 gap(s) and 0 overlap(s)\r\n```\r\n\r\n"}}
{"actor":{"display_login":"megies"}}