{"action":"created","comment":{"url":"https://api.github.com/repos/Scyfer/fuel/pulls/comments/63861338","id":63861338,"diff_hunk":"@@ -1144,10 +1144,17 @@ def transform_source_example(self, example, source_name):\n \n     def _example_transform(self, example, rotation_angle):\n         dt = example.dtype\n-        im = Image.fromarray(example.transpose(1, 2, 0))\n-        example = numpy.array(im.rotate(rotation_angle,\n-                                        resample=self.resample)).astype(dt)\n-        return example.transpose(2, 0, 1)\n+        if dt == 'float32' or dt == 'float64':","path":"fuel/transformers/image.py","position":8,"original_position":8,"commit_id":"9064f46de4036e639ed3b6b7558929e7e0b699d7","original_commit_id":"9064f46de4036e639ed3b6b7558929e7e0b699d7","user":{"login":"naifrec","id":14828647,"avatar_url":"https://avatars.githubusercontent.com/u/14828647?v=3","gravatar_id":"","url":"https://api.github.com/users/naifrec","html_url":"https://github.com/naifrec","followers_url":"https://api.github.com/users/naifrec/followers","following_url":"https://api.github.com/users/naifrec/following{/other_user}","gists_url":"https://api.github.com/users/naifrec/gists{/gist_id}","starred_url":"https://api.github.com/users/naifrec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/naifrec/subscriptions","organizations_url":"https://api.github.com/users/naifrec/orgs","repos_url":"https://api.github.com/users/naifrec/repos","events_url":"https://api.github.com/users/naifrec/events{/privacy}","received_events_url":"https://api.github.com/users/naifrec/received_events","type":"User","site_admin":false},"body":"I think the best way to check if the dtype is float is:\r\n\r\nif np.issubdtype(dt, np.float):","created_at":"2016-05-19T11:22:47Z","updated_at":"2016-05-19T11:22:47Z","html_url":"https://github.com/Scyfer/fuel/pull/9#discussion_r63861338","pull_request_url":"https://api.github.com/repos/Scyfer/fuel/pulls/9","_links":{"self":{"href":"https://api.github.com/repos/Scyfer/fuel/pulls/comments/63861338"},"html":{"href":"https://github.com/Scyfer/fuel/pull/9#discussion_r63861338"},"pull_request":{"href":"https://api.github.com/repos/Scyfer/fuel/pulls/9"}}},"pull_request":{"url":"https://api.github.com/repos/Scyfer/fuel/pulls/9","id":70669047,"html_url":"https://github.com/Scyfer/fuel/pull/9","diff_url":"https://github.com/Scyfer/fuel/pull/9.diff","patch_url":"https://github.com/Scyfer/fuel/pull/9.patch","issue_url":"https://api.github.com/repos/Scyfer/fuel/issues/9","number":9,"state":"open","locked":false,"title":"Fixed ramdon 2D rotation tranfromer to work with floats.","user":{"login":"markusnagel","id":9336024,"avatar_url":"https://avatars.githubusercontent.com/u/9336024?v=3","gravatar_id":"","url":"https://api.github.com/users/markusnagel","html_url":"https://github.com/markusnagel","followers_url":"https://api.github.com/users/markusnagel/followers","following_url":"https://api.github.com/users/markusnagel/following{/other_user}","gists_url":"https://api.github.com/users/markusnagel/gists{/gist_id}","starred_url":"https://api.github.com/users/markusnagel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markusnagel/subscriptions","organizations_url":"https://api.github.com/users/markusnagel/orgs","repos_url":"https://api.github.com/users/markusnagel/repos","events_url":"https://api.github.com/users/markusnagel/events{/privacy}","received_events_url":"https://api.github.com/users/markusnagel/received_events","type":"User","site_admin":false},"body":"@naifrec please check and merge. Thanks","created_at":"2016-05-19T10:17:49Z","updated_at":"2016-05-19T11:22:47Z","closed_at":null,"merged_at":null,"merge_commit_sha":"939f30ece4721d77c4b8e7e12b51c20155b9674d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Scyfer/fuel/pulls/9/commits","review_comments_url":"https://api.github.com/repos/Scyfer/fuel/pulls/9/comments","review_comment_url":"https://api.github.com/repos/Scyfer/fuel/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Scyfer/fuel/issues/9/comments","statuses_url":"https://api.github.com/repos/Scyfer/fuel/statuses/9064f46de4036e639ed3b6b7558929e7e0b699d7","head":{"label":"Scyfer:bugfix_rotation_local","ref":"bugfix_rotation_local","sha":"9064f46de4036e639ed3b6b7558929e7e0b699d7","user":{"login":"Scyfer","id":14925785,"avatar_url":"https://avatars.githubusercontent.com/u/14925785?v=3","gravatar_id":"","url":"https://api.github.com/users/Scyfer","html_url":"https://github.com/Scyfer","followers_url":"https://api.github.com/users/Scyfer/followers","following_url":"https://api.github.com/users/Scyfer/following{/other_user}","gists_url":"https://api.github.com/users/Scyfer/gists{/gist_id}","starred_url":"https://api.github.com/users/Scyfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scyfer/subscriptions","organizations_url":"https://api.github.com/users/Scyfer/orgs","repos_url":"https://api.github.com/users/Scyfer/repos","events_url":"https://api.github.com/users/Scyfer/events{/privacy}","received_events_url":"https://api.github.com/users/Scyfer/received_events","type":"Organization","site_admin":false},"repo":{"id":43499403,"name":"fuel","full_name":"Scyfer/fuel","owner":{"login":"Scyfer","id":14925785,"avatar_url":"https://avatars.githubusercontent.com/u/14925785?v=3","gravatar_id":"","url":"https://api.github.com/users/Scyfer","html_url":"https://github.com/Scyfer","followers_url":"https://api.github.com/users/Scyfer/followers","following_url":"https://api.github.com/users/Scyfer/following{/other_user}","gists_url":"https://api.github.com/users/Scyfer/gists{/gist_id}","starred_url":"https://api.github.com/users/Scyfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scyfer/subscriptions","organizations_url":"https://api.github.com/users/Scyfer/orgs","repos_url":"https://api.github.com/users/Scyfer/repos","events_url":"https://api.github.com/users/Scyfer/events{/privacy}","received_events_url":"https://api.github.com/users/Scyfer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Scyfer/fuel","description":"A data pipeline framework for machine learning","fork":true,"url":"https://api.github.com/repos/Scyfer/fuel","forks_url":"https://api.github.com/repos/Scyfer/fuel/forks","keys_url":"https://api.github.com/repos/Scyfer/fuel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Scyfer/fuel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Scyfer/fuel/teams","hooks_url":"https://api.github.com/repos/Scyfer/fuel/hooks","issue_events_url":"https://api.github.com/repos/Scyfer/fuel/issues/events{/number}","events_url":"https://api.github.com/repos/Scyfer/fuel/events","assignees_url":"https://api.github.com/repos/Scyfer/fuel/assignees{/user}","branches_url":"https://api.github.com/repos/Scyfer/fuel/branches{/branch}","tags_url":"https://api.github.com/repos/Scyfer/fuel/tags","blobs_url":"https://api.github.com/repos/Scyfer/fuel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Scyfer/fuel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Scyfer/fuel/git/refs{/sha}","trees_url":"https://api.github.com/repos/Scyfer/fuel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Scyfer/fuel/statuses/{sha}","languages_url":"https://api.github.com/repos/Scyfer/fuel/languages","stargazers_url":"https://api.github.com/repos/Scyfer/fuel/stargazers","contributors_url":"https://api.github.com/repos/Scyfer/fuel/contributors","subscribers_url":"https://api.github.com/repos/Scyfer/fuel/subscribers","subscription_url":"https://api.github.com/repos/Scyfer/fuel/subscription","commits_url":"https://api.github.com/repos/Scyfer/fuel/commits{/sha}","git_commits_url":"https://api.github.com/repos/Scyfer/fuel/git/commits{/sha}","comments_url":"https://api.github.com/repos/Scyfer/fuel/comments{/number}","issue_comment_url":"https://api.github.com/repos/Scyfer/fuel/issues/comments{/number}","contents_url":"https://api.github.com/repos/Scyfer/fuel/contents/{+path}","compare_url":"https://api.github.com/repos/Scyfer/fuel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Scyfer/fuel/merges","archive_url":"https://api.github.com/repos/Scyfer/fuel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Scyfer/fuel/downloads","issues_url":"https://api.github.com/repos/Scyfer/fuel/issues{/number}","pulls_url":"https://api.github.com/repos/Scyfer/fuel/pulls{/number}","milestones_url":"https://api.github.com/repos/Scyfer/fuel/milestones{/number}","notifications_url":"https://api.github.com/repos/Scyfer/fuel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Scyfer/fuel/labels{/name}","releases_url":"https://api.github.com/repos/Scyfer/fuel/releases{/id}","deployments_url":"https://api.github.com/repos/Scyfer/fuel/deployments","created_at":"2015-10-01T13:56:58Z","updated_at":"2016-01-13T17:13:09Z","pushed_at":"2016-05-19T10:17:50Z","git_url":"git://github.com/Scyfer/fuel.git","ssh_url":"git@github.com:Scyfer/fuel.git","clone_url":"https://github.com/Scyfer/fuel.git","svn_url":"https://github.com/Scyfer/fuel","homepage":null,"size":1250,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"base":{"label":"Scyfer:master","ref":"master","sha":"b368a526fdc7567231e0433b4d1511c9d6ce435e","user":{"login":"Scyfer","id":14925785,"avatar_url":"https://avatars.githubusercontent.com/u/14925785?v=3","gravatar_id":"","url":"https://api.github.com/users/Scyfer","html_url":"https://github.com/Scyfer","followers_url":"https://api.github.com/users/Scyfer/followers","following_url":"https://api.github.com/users/Scyfer/following{/other_user}","gists_url":"https://api.github.com/users/Scyfer/gists{/gist_id}","starred_url":"https://api.github.com/users/Scyfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scyfer/subscriptions","organizations_url":"https://api.github.com/users/Scyfer/orgs","repos_url":"https://api.github.com/users/Scyfer/repos","events_url":"https://api.github.com/users/Scyfer/events{/privacy}","received_events_url":"https://api.github.com/users/Scyfer/received_events","type":"Organization","site_admin":false},"repo":{"id":43499403,"name":"fuel","full_name":"Scyfer/fuel","owner":{"login":"Scyfer","id":14925785,"avatar_url":"https://avatars.githubusercontent.com/u/14925785?v=3","gravatar_id":"","url":"https://api.github.com/users/Scyfer","html_url":"https://github.com/Scyfer","followers_url":"https://api.github.com/users/Scyfer/followers","following_url":"https://api.github.com/users/Scyfer/following{/other_user}","gists_url":"https://api.github.com/users/Scyfer/gists{/gist_id}","starred_url":"https://api.github.com/users/Scyfer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Scyfer/subscriptions","organizations_url":"https://api.github.com/users/Scyfer/orgs","repos_url":"https://api.github.com/users/Scyfer/repos","events_url":"https://api.github.com/users/Scyfer/events{/privacy}","received_events_url":"https://api.github.com/users/Scyfer/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Scyfer/fuel","description":"A data pipeline framework for machine learning","fork":true,"url":"https://api.github.com/repos/Scyfer/fuel","forks_url":"https://api.github.com/repos/Scyfer/fuel/forks","keys_url":"https://api.github.com/repos/Scyfer/fuel/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Scyfer/fuel/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Scyfer/fuel/teams","hooks_url":"https://api.github.com/repos/Scyfer/fuel/hooks","issue_events_url":"https://api.github.com/repos/Scyfer/fuel/issues/events{/number}","events_url":"https://api.github.com/repos/Scyfer/fuel/events","assignees_url":"https://api.github.com/repos/Scyfer/fuel/assignees{/user}","branches_url":"https://api.github.com/repos/Scyfer/fuel/branches{/branch}","tags_url":"https://api.github.com/repos/Scyfer/fuel/tags","blobs_url":"https://api.github.com/repos/Scyfer/fuel/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Scyfer/fuel/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Scyfer/fuel/git/refs{/sha}","trees_url":"https://api.github.com/repos/Scyfer/fuel/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Scyfer/fuel/statuses/{sha}","languages_url":"https://api.github.com/repos/Scyfer/fuel/languages","stargazers_url":"https://api.github.com/repos/Scyfer/fuel/stargazers","contributors_url":"https://api.github.com/repos/Scyfer/fuel/contributors","subscribers_url":"https://api.github.com/repos/Scyfer/fuel/subscribers","subscription_url":"https://api.github.com/repos/Scyfer/fuel/subscription","commits_url":"https://api.github.com/repos/Scyfer/fuel/commits{/sha}","git_commits_url":"https://api.github.com/repos/Scyfer/fuel/git/commits{/sha}","comments_url":"https://api.github.com/repos/Scyfer/fuel/comments{/number}","issue_comment_url":"https://api.github.com/repos/Scyfer/fuel/issues/comments{/number}","contents_url":"https://api.github.com/repos/Scyfer/fuel/contents/{+path}","compare_url":"https://api.github.com/repos/Scyfer/fuel/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Scyfer/fuel/merges","archive_url":"https://api.github.com/repos/Scyfer/fuel/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Scyfer/fuel/downloads","issues_url":"https://api.github.com/repos/Scyfer/fuel/issues{/number}","pulls_url":"https://api.github.com/repos/Scyfer/fuel/pulls{/number}","milestones_url":"https://api.github.com/repos/Scyfer/fuel/milestones{/number}","notifications_url":"https://api.github.com/repos/Scyfer/fuel/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Scyfer/fuel/labels{/name}","releases_url":"https://api.github.com/repos/Scyfer/fuel/releases{/id}","deployments_url":"https://api.github.com/repos/Scyfer/fuel/deployments","created_at":"2015-10-01T13:56:58Z","updated_at":"2016-01-13T17:13:09Z","pushed_at":"2016-05-19T10:17:50Z","git_url":"git://github.com/Scyfer/fuel.git","ssh_url":"git@github.com:Scyfer/fuel.git","clone_url":"https://github.com/Scyfer/fuel.git","svn_url":"https://github.com/Scyfer/fuel","homepage":null,"size":1250,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":4,"forks":0,"open_issues":4,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Scyfer/fuel/pulls/9"},"html":{"href":"https://github.com/Scyfer/fuel/pull/9"},"issue":{"href":"https://api.github.com/repos/Scyfer/fuel/issues/9"},"comments":{"href":"https://api.github.com/repos/Scyfer/fuel/issues/9/comments"},"review_comments":{"href":"https://api.github.com/repos/Scyfer/fuel/pulls/9/comments"},"review_comment":{"href":"https://api.github.com/repos/Scyfer/fuel/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Scyfer/fuel/pulls/9/commits"},"statuses":{"href":"https://api.github.com/repos/Scyfer/fuel/statuses/9064f46de4036e639ed3b6b7558929e7e0b699d7"}}}}