{"action":"created","issue":{"url":"https://api.github.com/repos/rochefort-lab/sima/issues/2","repository_url":"https://api.github.com/repos/rochefort-lab/sima","labels_url":"https://api.github.com/repos/rochefort-lab/sima/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/rochefort-lab/sima/issues/2/comments","events_url":"https://api.github.com/repos/rochefort-lab/sima/issues/2/events","html_url":"https://github.com/rochefort-lab/sima/issues/2","id":303517941,"number":2,"title":"DiscreteFourier2D() type error","user":{"login":"swkeemink","id":1584610,"avatar_url":"https://avatars2.githubusercontent.com/u/1584610?v=4","gravatar_id":"","url":"https://api.github.com/users/swkeemink","html_url":"https://github.com/swkeemink","followers_url":"https://api.github.com/users/swkeemink/followers","following_url":"https://api.github.com/users/swkeemink/following{/other_user}","gists_url":"https://api.github.com/users/swkeemink/gists{/gist_id}","starred_url":"https://api.github.com/users/swkeemink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swkeemink/subscriptions","organizations_url":"https://api.github.com/users/swkeemink/orgs","repos_url":"https://api.github.com/users/swkeemink/repos","events_url":"https://api.github.com/users/swkeemink/events{/privacy}","received_events_url":"https://api.github.com/users/swkeemink/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-08T15:21:08Z","updated_at":"2018-03-08T17:42:47Z","closed_at":null,"author_association":"OWNER","body":"The following error pops up on up-to-date python 2 installations when  using sima.motion.DiscreteFourier2D() to motion correct (other methods work fine):\r\n```\r\n/home/sander/Code/rochefort-lab/sima/sima/motion/motion.py in _observation_counts(raw_shape, displacements, untrimmed_shape)\r\n    250             cnt[plane + d[0],\r\n    251                 d[1]:(d[1] + raw_shape[1]),\r\n--> 252                 d[2]:(d[2] + raw_shape[2])] += 1\r\n    253     elif displacements.ndim == 3:\r\n    254         if displacements.shape[-1] == 2:\r\n\r\nTypeError: slice indices must be integers or None or have an __index__ method\r\n```\r\nIt might come from d containing floats instead of integers."},"comment":{"url":"https://api.github.com/repos/rochefort-lab/sima/issues/comments/371565027","html_url":"https://github.com/rochefort-lab/sima/issues/2#issuecomment-371565027","issue_url":"https://api.github.com/repos/rochefort-lab/sima/issues/2","id":371565027,"user":{"login":"swkeemink","id":1584610,"avatar_url":"https://avatars2.githubusercontent.com/u/1584610?v=4","gravatar_id":"","url":"https://api.github.com/users/swkeemink","html_url":"https://github.com/swkeemink","followers_url":"https://api.github.com/users/swkeemink/followers","following_url":"https://api.github.com/users/swkeemink/following{/other_user}","gists_url":"https://api.github.com/users/swkeemink/gists{/gist_id}","starred_url":"https://api.github.com/users/swkeemink/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swkeemink/subscriptions","organizations_url":"https://api.github.com/users/swkeemink/orgs","repos_url":"https://api.github.com/users/swkeemink/repos","events_url":"https://api.github.com/users/swkeemink/events{/privacy}","received_events_url":"https://api.github.com/users/swkeemink/received_events","type":"User","site_admin":false},"created_at":"2018-03-08T17:42:47Z","updated_at":"2018-03-08T17:42:47Z","author_association":"OWNER","body":"Fixed by making sure the output of the ```_estimate(self, dataset)``` function in ```dftreg.py``` is of integer type."}}
{"actor":{"display_login":"swkeemink"}}