{"action":"created","issue":{"url":"https://api.github.com/repos/mantidproject/mantid/issues/14014","labels_url":"https://api.github.com/repos/mantidproject/mantid/issues/14014/labels{/name}","comments_url":"https://api.github.com/repos/mantidproject/mantid/issues/14014/comments","events_url":"https://api.github.com/repos/mantidproject/mantid/issues/14014/events","html_url":"https://github.com/mantidproject/mantid/pull/14014","id":111780842,"number":14014,"title":"ContainerSubtraction scaleX for off centre peaks","user":{"login":"ElliotAOram","id":13132128,"avatar_url":"https://avatars.githubusercontent.com/u/13132128?v=3","gravatar_id":"","url":"https://api.github.com/users/ElliotAOram","html_url":"https://github.com/ElliotAOram","followers_url":"https://api.github.com/users/ElliotAOram/followers","following_url":"https://api.github.com/users/ElliotAOram/following{/other_user}","gists_url":"https://api.github.com/users/ElliotAOram/gists{/gist_id}","starred_url":"https://api.github.com/users/ElliotAOram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ElliotAOram/subscriptions","organizations_url":"https://api.github.com/users/ElliotAOram/orgs","repos_url":"https://api.github.com/users/ElliotAOram/repos","events_url":"https://api.github.com/users/ElliotAOram/events{/privacy}","received_events_url":"https://api.github.com/users/ElliotAOram/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mantidproject/mantid/labels/Component:%20GUI","name":"Component: GUI","color":"009800"},{"url":"https://api.github.com/repos/mantidproject/mantid/labels/Component:%20Indirect%20Inelastic","name":"Component: Indirect Inelastic","color":"009800"}],"state":"open","locked":false,"assignee":{"login":"shahrozahmed1","id":13132173,"avatar_url":"https://avatars.githubusercontent.com/u/13132173?v=3","gravatar_id":"","url":"https://api.github.com/users/shahrozahmed1","html_url":"https://github.com/shahrozahmed1","followers_url":"https://api.github.com/users/shahrozahmed1/followers","following_url":"https://api.github.com/users/shahrozahmed1/following{/other_user}","gists_url":"https://api.github.com/users/shahrozahmed1/gists{/gist_id}","starred_url":"https://api.github.com/users/shahrozahmed1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahrozahmed1/subscriptions","organizations_url":"https://api.github.com/users/shahrozahmed1/orgs","repos_url":"https://api.github.com/users/shahrozahmed1/repos","events_url":"https://api.github.com/users/shahrozahmed1/events{/privacy}","received_events_url":"https://api.github.com/users/shahrozahmed1/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mantidproject/mantid/milestones/4","html_url":"https://github.com/mantidproject/mantid/milestones/Release%203.6","labels_url":"https://api.github.com/repos/mantidproject/mantid/milestones/4/labels","id":1106937,"number":4,"title":"Release 3.6","description":"","creator":{"login":"peterfpeterson","id":404003,"avatar_url":"https://avatars.githubusercontent.com/u/404003?v=3","gravatar_id":"","url":"https://api.github.com/users/peterfpeterson","html_url":"https://github.com/peterfpeterson","followers_url":"https://api.github.com/users/peterfpeterson/followers","following_url":"https://api.github.com/users/peterfpeterson/following{/other_user}","gists_url":"https://api.github.com/users/peterfpeterson/gists{/gist_id}","starred_url":"https://api.github.com/users/peterfpeterson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterfpeterson/subscriptions","organizations_url":"https://api.github.com/users/peterfpeterson/orgs","repos_url":"https://api.github.com/users/peterfpeterson/repos","events_url":"https://api.github.com/users/peterfpeterson/events{/privacy}","received_events_url":"https://api.github.com/users/peterfpeterson/received_events","type":"User","site_admin":false},"open_issues":564,"closed_issues":219,"state":"open","created_at":"2015-05-12T15:36:23Z","updated_at":"2015-10-22T13:45:23Z","due_on":"2016-01-30T05:00:00Z","closed_at":null},"comments":5,"created_at":"2015-10-16T07:58:48Z","updated_at":"2015-10-22T14:04:01Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mantidproject/mantid/pulls/14014","html_url":"https://github.com/mantidproject/mantid/pull/14014","diff_url":"https://github.com/mantidproject/mantid/pull/14014.diff","patch_url":"https://github.com/mantidproject/mantid/pull/14014.patch"},"body":"Fixes #13993\r\n\r\nAn additional Container shift option has been added to the interface to allow for containers that do not match the peak of the sample to be shifted into position.\r\n\r\n# To Test\r\n* Open ContainerSubtraction (Interfaces > Indirect > Corrections > ContainerSubtraction)\r\n* irs26176_graphite002_red.nxs for the sample\r\n* irs26174_graphite002_red.nxs for the container\r\n   * Please get these files from `\\\\olympic\\babylon5\\Public\\ElliotOram\\Corrections\\ContainerSubtraction\\-0.2 shifted can` as the can has already been shifted -0.2 in x for testing\r\n* Check the container (irs26174) is off zero by -0.2 \r\n  * plot one of the spectrum and check the peak centre = -0.2\r\n* Check the `Shift x-values of container by adding` option and set the shift to `+0.20`\r\n* Click Run, you may be prompted with a warning saying the binning does not match and asking if you would like to rebin, click `yes`\r\nEnsure that the plot now show the aligned Container and Sample with the Subtraction and it looks correct."},"comment":{"url":"https://api.github.com/repos/mantidproject/mantid/issues/comments/150234607","html_url":"https://github.com/mantidproject/mantid/pull/14014#issuecomment-150234607","issue_url":"https://api.github.com/repos/mantidproject/mantid/issues/14014","id":150234607,"user":{"login":"shahrozahmed1","id":13132173,"avatar_url":"https://avatars.githubusercontent.com/u/13132173?v=3","gravatar_id":"","url":"https://api.github.com/users/shahrozahmed1","html_url":"https://github.com/shahrozahmed1","followers_url":"https://api.github.com/users/shahrozahmed1/followers","following_url":"https://api.github.com/users/shahrozahmed1/following{/other_user}","gists_url":"https://api.github.com/users/shahrozahmed1/gists{/gist_id}","starred_url":"https://api.github.com/users/shahrozahmed1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shahrozahmed1/subscriptions","organizations_url":"https://api.github.com/users/shahrozahmed1/orgs","repos_url":"https://api.github.com/users/shahrozahmed1/repos","events_url":"https://api.github.com/users/shahrozahmed1/events{/privacy}","received_events_url":"https://api.github.com/users/shahrozahmed1/received_events","type":"User","site_admin":false},"created_at":"2015-10-22T14:04:01Z","updated_at":"2015-10-22T14:04:01Z","body":"The `Container Subtraction` tab under `Indirect Correction` GUI does what it says, also tested it with `high spectra`. No more errors messages displayed when changing around the `Shift x-values of container by adding ... `. Hence this can be merged."}}