{"action":"created","issue":{"url":"https://api.github.com/repos/hyperspy/hyperspy/issues/631","labels_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/631/labels{/name}","comments_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/631/comments","events_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/631/events","html_url":"https://github.com/hyperspy/hyperspy/pull/631","id":98025492,"number":631,"title":"ENH: alignXD() expand keyword","user":{"login":"vidartf","id":510760,"avatar_url":"https://avatars.githubusercontent.com/u/510760?v=3","gravatar_id":"","url":"https://api.github.com/users/vidartf","html_url":"https://github.com/vidartf","followers_url":"https://api.github.com/users/vidartf/followers","following_url":"https://api.github.com/users/vidartf/following{/other_user}","gists_url":"https://api.github.com/users/vidartf/gists{/gist_id}","starred_url":"https://api.github.com/users/vidartf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vidartf/subscriptions","organizations_url":"https://api.github.com/users/vidartf/orgs","repos_url":"https://api.github.com/users/vidartf/repos","events_url":"https://api.github.com/users/vidartf/events{/privacy}","received_events_url":"https://api.github.com/users/vidartf/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hyperspy/hyperspy/labels/enhancement","name":"enhancement","color":"02e10c"},{"url":"https://api.github.com/repos/hyperspy/hyperspy/labels/needs%20review","name":"needs review","color":"006b75"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-29T20:44:30Z","updated_at":"2015-07-30T09:58:42Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/hyperspy/hyperspy/pulls/631","html_url":"https://github.com/hyperspy/hyperspy/pull/631","diff_url":"https://github.com/hyperspy/hyperspy/pull/631.diff","patch_url":"https://github.com/hyperspy/hyperspy/pull/631.patch"},"body":"Previously `Signal.align2D()` and `Signal.align1D()` had the options to either crop the image, or leave it untouched. This PR adds a keyword `expand`, which causes the data to be expanded to fill the aligned data. In this way, none of the original data is lost, but a lot of the data set will now be filled with the fill value.\r\n\r\n### TODO:\r\n - [x] Implementation\r\n - [x] Docstrings\r\n - [x] Tests"},"comment":{"url":"https://api.github.com/repos/hyperspy/hyperspy/issues/comments/126256490","html_url":"https://github.com/hyperspy/hyperspy/pull/631#issuecomment-126256490","issue_url":"https://api.github.com/repos/hyperspy/hyperspy/issues/631","id":126256490,"user":{"login":"landscape-bot","id":10010231,"avatar_url":"https://avatars.githubusercontent.com/u/10010231?v=3","gravatar_id":"","url":"https://api.github.com/users/landscape-bot","html_url":"https://github.com/landscape-bot","followers_url":"https://api.github.com/users/landscape-bot/followers","following_url":"https://api.github.com/users/landscape-bot/following{/other_user}","gists_url":"https://api.github.com/users/landscape-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/landscape-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/landscape-bot/subscriptions","organizations_url":"https://api.github.com/users/landscape-bot/orgs","repos_url":"https://api.github.com/users/landscape-bot/repos","events_url":"https://api.github.com/users/landscape-bot/events{/privacy}","received_events_url":"https://api.github.com/users/landscape-bot/received_events","type":"User","site_admin":false},"created_at":"2015-07-30T09:58:42Z","updated_at":"2015-07-30T09:58:42Z","body":"[![Code Health](https://landscape.io/badge/214253/landscape.svg?style=flat)](https://landscape.io/diff/202750)\nRepository health increased by 0.00% when pulling **[4557df9](https://github.com/vidartf/hyperspy/commit/4557df994107471792d07842152fd44b2a1d960e) on vidartf:ENH_alignXd_expand** into **[a595494](https://github.com/hyperspy/hyperspy/commit/a595494f29eeaa12180cfa37c33c3fad1cd5af4c) on hyperspy:master**.\n\n * [1 new problem was found](https://landscape.io/diff/202750) (including 1 error and 0 code smells).\n * No problems were fixed."}}