{"action":"created","issue":{"url":"https://api.github.com/repos/mantidproject/mantid/issues/13103","labels_url":"https://api.github.com/repos/mantidproject/mantid/issues/13103/labels{/name}","comments_url":"https://api.github.com/repos/mantidproject/mantid/issues/13103/comments","events_url":"https://api.github.com/repos/mantidproject/mantid/issues/13103/events","html_url":"https://github.com/mantidproject/mantid/pull/13103","id":95169492,"number":13103,"title":"Fix crash in VSI ThreeSlice mode when including latex for axis labels","user":{"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},"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/Group:%20Vates","name":"Group: Vates","color":"bfe5bf"},{"url":"https://api.github.com/repos/mantidproject/mantid/labels/Priority:%20High","name":"Priority: High","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"picatess","id":8955784,"avatar_url":"https://avatars.githubusercontent.com/u/8955784?v=3","gravatar_id":"","url":"https://api.github.com/users/picatess","html_url":"https://github.com/picatess","followers_url":"https://api.github.com/users/picatess/followers","following_url":"https://api.github.com/users/picatess/following{/other_user}","gists_url":"https://api.github.com/users/picatess/gists{/gist_id}","starred_url":"https://api.github.com/users/picatess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/picatess/subscriptions","organizations_url":"https://api.github.com/users/picatess/orgs","repos_url":"https://api.github.com/users/picatess/repos","events_url":"https://api.github.com/users/picatess/events{/privacy}","received_events_url":"https://api.github.com/users/picatess/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/mantidproject/mantid/milestones/3","html_url":"https://github.com/mantidproject/mantid/milestones/Release%203.5","labels_url":"https://api.github.com/repos/mantidproject/mantid/milestones/3/labels","id":1058985,"number":3,"title":"Release 3.5","description":"This is a placeholder in git for the [trac Release 3.5 milestone](http://trac.mantidproject.org/mantid/milestone/Release%203.5)","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":430,"closed_issues":714,"state":"open","created_at":"2015-04-08T18:44:37Z","updated_at":"2015-07-31T15:06:39Z","due_on":"2015-10-01T04:00:00Z","closed_at":null},"comments":4,"created_at":"2015-07-15T11:27:10Z","updated_at":"2015-07-31T15:48:49Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/mantidproject/mantid/pulls/13103","html_url":"https://github.com/mantidproject/mantid/pull/13103","diff_url":"https://github.com/mantidproject/mantid/pull/13103.diff","patch_url":"https://github.com/mantidproject/mantid/pull/13103.patch"},"body":"Fixes #13080\r\n\r\n**Tester**\r\nThis involved a few changes to how the embedded Python in MantidPlot works with so there is a bit to test. I have compiled a list of scenarios below.\r\n\r\nThere is nothing to add to the release notes or documentation here.\r\n\r\nClean open/close\r\n-----------------------\r\nStart and close MantidPlot immediately - no crash or strange behaviour\r\n\r\nRun Script In Thread\r\n----------------------------\r\n* Start MantidPlot\r\n* Open Script editor\r\n* Run some python code\r\n* Close MantidPlot\r\n\r\nRun Script In Main Thread\r\n-----------------------------------\r\n* Start MantidPlot\r\n* Open Script editor\r\n* Select Execute->Mode->Serialised\r\n* Run some python code\r\n* Close MantidPlot\r\n\r\nRun Two Scripts at Once\r\n---------------------------------\r\n* Start MantidPlot\r\n* Open Script editor\r\n* Run script in two separate tabs (change 1->2 in second):\r\n```python\r\nimport time\r\ncounter = 0\r\nwhile counter < 10:\r\n    print \"Thread 1\"\r\n    time.sleep(5)\r\n    counter += 1\r\n\r\nprint \"done 1\"\r\n```\r\n* Wait for completion and close MantidPlot\r\n\r\nVSI with LaTeX labels\r\n------------------------------\r\n* This requires a code edit to visualise at the moment. In https://github.com/mantidproject/mantid/blob/715f81b3ca09ed0c4110f673a2cb4118207b5e80/Code/Mantid/Vates/VatesAPI/src/Common.cpp#L20 add `title += \"$\\\\AA^-1$\";`\r\n* Compile\r\n* Start MantidPlot\r\n* Open Script editor\r\n* Run:\r\n```python\r\nCreateSimulationWorkspace(Instrument='MARI', BinParams='-11,0.05,11', OutputWorkspace='mari')\r\nAddSampleLog(Workspace='mari', LogName='ei', LogText='12.5', LogType='Number')\r\nConvertToMD(InputWorkspace='mari', QDimensions='Q3D', OutputWorkspace='mdws')\r\n```\r\n* Right click on ''mdws\" and click open VSI\r\n* Switch to Three Slice view and see latex labels\r\n* Close MantidPlot\r\n\r\nVSI while running Python script\r\n------------------------------------------\r\n* Start MantidPlot\r\n* Open Script editor\r\n* Use the script from \"VSI with LaTeX labels\" and create the MD workspace \r\n* Start the script from \"Run Two Scripts at Once\"\r\n* Open the VSI and switch to the three-slice view\r\n* Close MantidPlot\r\n\r\nRun a Python Algorithm From Script and GUI\r\n------------------------------------------------------------\r\n* Start MantidPlot\r\n* Open Script editor\r\n* Add the system test data to the path\r\n* Run the script:\r\n```\r\nLoadVesuvio(Filename='14188-14189', SpectrumList='135-142', SumSpectra=True, OutputWorkspace='test')\r\n```\r\n* Do the same from the GUI.\r\n* Close MantidPlot \r\n"},"comment":{"url":"https://api.github.com/repos/mantidproject/mantid/issues/comments/126729923","html_url":"https://github.com/mantidproject/mantid/pull/13103#issuecomment-126729923","issue_url":"https://api.github.com/repos/mantidproject/mantid/issues/13103","id":126729923,"user":{"login":"picatess","id":8955784,"avatar_url":"https://avatars.githubusercontent.com/u/8955784?v=3","gravatar_id":"","url":"https://api.github.com/users/picatess","html_url":"https://github.com/picatess","followers_url":"https://api.github.com/users/picatess/followers","following_url":"https://api.github.com/users/picatess/following{/other_user}","gists_url":"https://api.github.com/users/picatess/gists{/gist_id}","starred_url":"https://api.github.com/users/picatess/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/picatess/subscriptions","organizations_url":"https://api.github.com/users/picatess/orgs","repos_url":"https://api.github.com/users/picatess/repos","events_url":"https://api.github.com/users/picatess/events{/privacy}","received_events_url":"https://api.github.com/users/picatess/received_events","type":"User","site_admin":false},"created_at":"2015-07-31T15:48:48Z","updated_at":"2015-07-31T15:48:48Z","body":"Tested:\r\n1. Clean open/close : Pass\r\n2. Run Script In Thread : Pass\r\n3. Run Script In Main Thread : Pass\r\n4. Run Two Scripts at Once : Pass\r\n5. VSI with LaTeX labels : Pass   for \"$\\\\AA^{-1}$\"\r\n6. VSI while running Python script : Pass\r\n7. Run a Python Algorithm From Script and GUI : Pass\r\n\r\nAll tests were fine on Windows 7\r\n\r\n"}}