{"action":"created","issue":{"url":"https://api.github.com/repos/mantidproject/mantid/issues/15260","repository_url":"https://api.github.com/repos/mantidproject/mantid","labels_url":"https://api.github.com/repos/mantidproject/mantid/issues/15260/labels{/name}","comments_url":"https://api.github.com/repos/mantidproject/mantid/issues/15260/comments","events_url":"https://api.github.com/repos/mantidproject/mantid/issues/15260/events","html_url":"https://github.com/mantidproject/mantid/pull/15260","id":132934033,"number":15260,"title":"Fix Slice Viewer bug where no plot was shown if there are integrated dimensions","user":{"login":"matthew-d-jones","id":13455433,"avatar_url":"https://avatars.githubusercontent.com/u/13455433?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-d-jones","html_url":"https://github.com/matthew-d-jones","followers_url":"https://api.github.com/users/matthew-d-jones/followers","following_url":"https://api.github.com/users/matthew-d-jones/following{/other_user}","gists_url":"https://api.github.com/users/matthew-d-jones/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-d-jones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-d-jones/subscriptions","organizations_url":"https://api.github.com/users/matthew-d-jones/orgs","repos_url":"https://api.github.com/users/matthew-d-jones/repos","events_url":"https://api.github.com/users/matthew-d-jones/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-d-jones/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mantidproject/mantid/labels/Component:%20Imaging","name":"Component: Imaging","color":"009800"},{"url":"https://api.github.com/repos/mantidproject/mantid/labels/Group:%20Vates","name":"Group: Vates","color":"bfe5bf"},{"url":"https://api.github.com/repos/mantidproject/mantid/labels/Misc:%20Bugfix","name":"Misc: Bugfix","color":"d4c5f9"},{"url":"https://api.github.com/repos/mantidproject/mantid/labels/Priority:%20High","name":"Priority: High","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"martyngigg","id":733773,"avatar_url":"https://avatars.githubusercontent.com/u/733773?v=3","gravatar_id":"","url":"https://api.github.com/users/martyngigg","html_url":"https://github.com/martyngigg","followers_url":"https://api.github.com/users/martyngigg/followers","following_url":"https://api.github.com/users/martyngigg/following{/other_user}","gists_url":"https://api.github.com/users/martyngigg/gists{/gist_id}","starred_url":"https://api.github.com/users/martyngigg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martyngigg/subscriptions","organizations_url":"https://api.github.com/users/martyngigg/orgs","repos_url":"https://api.github.com/users/martyngigg/repos","events_url":"https://api.github.com/users/martyngigg/events{/privacy}","received_events_url":"https://api.github.com/users/martyngigg/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":"Code Freeze 16-Jan-2016\r\nBeta Test Opens 22-Jan-2016\r\nBeta Test Closes 9-Feb-2016\r\nRelease 15-Feb-2016","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":10,"closed_issues":1178,"state":"open","created_at":"2015-05-12T15:36:23Z","updated_at":"2016-02-11T10:40:32Z","due_on":"2016-02-15T00:00:00Z","closed_at":null},"comments":4,"created_at":"2016-02-11T10:19:04Z","updated_at":"2016-02-11T11:01:41Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mantidproject/mantid/pulls/15260","html_url":"https://github.com/mantidproject/mantid/pull/15260","diff_url":"https://github.com/mantidproject/mantid/pull/15260.diff","patch_url":"https://github.com/mantidproject/mantid/pull/15260.patch"},"body":"FIxes #15243 \r\n\r\nShould be merged with 3.6 release branch.\r\n\r\nThis bug affects MDHistoWorkspaces which have integrated dimensions and is a regression from previous release. The slice selecting slider was disabled for integrated dimensions (dimensions which have only a single bin) in #14354, however this can mean it is locked in a position where no data is shown. The fix here is to set the slider to the minimum position for integrated dimensions, which always results in the data being plotted.\r\n\r\n**To Test:**\r\n\r\nUse the following script to create an MDHistoWorkspace with 2 integrated dimensions and 2 non-integrated dimensions.\r\nSelect the non-integrated ones in the slice viewer (the first and last dimension).\r\nYou should see something plotted, previous to fix you would see only NaN for the slice.\r\n\r\n```python\r\n# Create a 3D event workspace to test with\r\nws_mdew = CreateMDWorkspace(Dimensions='4', Extents='-2,2,-2,2,-2,2,-2,2', Names='h,k,l,E',\r\n                       Units='rlu,rlu,rlu,E', SplitInto='12')\r\nFakeMDEventData(ws_mdew, UniformParams='10000', RandomizeSignal='1')\r\nws_mdew = SliceMD(ws_mdew,AlignedDim0='h,-2,2,12',AlignedDim1='k,-2,2,12',AlignedDim2='l,-2,2,12',AlignedDim3='E,-2,2,12')\r\n\r\n# Create projection\r\nproj_id = Projection([1,1,0], [-1,1,0], [0,0,1])\r\nproj_id.setType(0,'r')\r\nproj_id.setType(1,'r')\r\nproj_id.setType(2,'r')\r\nws_id = proj_id.createWorkspace()\r\n\r\nout_md_2d = CutMD(ws_mdew, Projection=ws_id, PBins=([-2,0.05,2],[-1.1,-0.9],[-0.1,0.1],[-2,0.05,2]), NoPix=False)\r\n\r\nsv1=plotSlice(out_md_2d,colormin=0.01,colormax=1,normalization=2)\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/mantidproject/mantid/issues/comments/182810440","html_url":"https://github.com/mantidproject/mantid/pull/15260#issuecomment-182810440","issue_url":"https://api.github.com/repos/mantidproject/mantid/issues/15260","id":182810440,"user":{"login":"matthew-d-jones","id":13455433,"avatar_url":"https://avatars.githubusercontent.com/u/13455433?v=3","gravatar_id":"","url":"https://api.github.com/users/matthew-d-jones","html_url":"https://github.com/matthew-d-jones","followers_url":"https://api.github.com/users/matthew-d-jones/followers","following_url":"https://api.github.com/users/matthew-d-jones/following{/other_user}","gists_url":"https://api.github.com/users/matthew-d-jones/gists{/gist_id}","starred_url":"https://api.github.com/users/matthew-d-jones/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthew-d-jones/subscriptions","organizations_url":"https://api.github.com/users/matthew-d-jones/orgs","repos_url":"https://api.github.com/users/matthew-d-jones/repos","events_url":"https://api.github.com/users/matthew-d-jones/events{/privacy}","received_events_url":"https://api.github.com/users/matthew-d-jones/received_events","type":"User","site_admin":false},"created_at":"2016-02-11T11:01:41Z","updated_at":"2016-02-11T11:01:41Z","body":"@martyngigg No, I'll create one now."}}