{"action":"closed","issue":{"url":"https://api.github.com/repos/dhuppenkothen/stingray/issues/19","labels_url":"https://api.github.com/repos/dhuppenkothen/stingray/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/dhuppenkothen/stingray/issues/19/comments","events_url":"https://api.github.com/repos/dhuppenkothen/stingray/issues/19/events","html_url":"https://github.com/dhuppenkothen/stingray/issues/19","id":120794472,"number":19,"title":"Lightcurve.rebin and Powerspectrum.rebin return x, y with different lenghts","user":{"login":"evandromr","id":4422731,"avatar_url":"https://avatars.githubusercontent.com/u/4422731?v=3","gravatar_id":"","url":"https://api.github.com/users/evandromr","html_url":"https://github.com/evandromr","followers_url":"https://api.github.com/users/evandromr/followers","following_url":"https://api.github.com/users/evandromr/following{/other_user}","gists_url":"https://api.github.com/users/evandromr/gists{/gist_id}","starred_url":"https://api.github.com/users/evandromr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/evandromr/subscriptions","organizations_url":"https://api.github.com/users/evandromr/orgs","repos_url":"https://api.github.com/users/evandromr/repos","events_url":"https://api.github.com/users/evandromr/events{/privacy}","received_events_url":"https://api.github.com/users/evandromr/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-07T15:11:42Z","updated_at":"2015-12-10T14:50:51Z","closed_at":"2015-12-10T14:50:51Z","body":"`lc = old_lc.rebin(new_dt)` returns a new Lightcurve object with `lc.time` array one element longer than `lc.counts` (or `lc.countrate`).\r\n\r\n`ps = old_ps.rebin(new_df)` returns a new Powerspectrum object with `ps.freq` array one element longer **or shorter** than `ps.ps`\r\n\r\nOnly with Powerspectrum.rebin I saw the result varying (i.e. `freq` is one element longer or shorter, depending on the binning factor), but I only used 1 data set (for different binning factors).\r\n\r\nI believe that in the scope of the class the `rebin` method should return equal-length arrays, even if that means dropping data at the extremities, in which case it might be useful to raise a Warning to the user. "}}