Ticket #9995 (assigned)
Plotting slice from script does not work property
Reported by: | Alex Buts | Owned by: | Owen Arnold |
---|---|---|---|
Priority: | major | Milestone: | Backlog |
Component: | Framework | Keywords: | |
Cc: | Blocked By: | #10333, #10365 | |
Blocking: | #10647, #11618 | Tester: |
Description (last modified by Alex Buts) (diff)
Try the script
Load(Filename='MAP05935_4to1_033.nxspe', OutputWorkspace='MAP05935', LoaderName='LoadNXSPE', LoaderVersion=1) # Got Matrix workspace SofQW3(InputWorkspace='MAP05935', OutputWorkspace='MAP05935MD', QAxisBinning='0,0.02,3', EMode='Direct') #Show the result as described at http://www.mantidproject.org/SliceViewer_Python_Interface #plotSlice('MAP05935MD')
Right click on the resulting workspace (MAP05935MD) and invoke sliceviewer --- nice looking picture appears (fig1).
uncomment line 3 above or run script below from ipython console.
plotSlice('MAP05935MD')
the result looks different and ugly (fig2)
Can not add picture at the moment as tracker have no space left.
The sample file and images are located at /Olympic/babylon5/Public/abuts/Ticket#9995
Change History
comment:3 Changed 6 years ago by Nick Draper
- Status changed from new to assigned
- Owner set to Owen Arnold
comment:4 Changed 6 years ago by Owen Arnold
More info needed. The instructions look good, and the images seem to indicate that there is indeed a problem here, however. Upon running the load in the script, I get the following based on the nxpe file you provided:
Error in execution of algorithm LoadNXSPE: Not NeXus or notNXSPE
comment:5 Changed 6 years ago by Alex Buts
This is strange as I do not have problem with loading these data (tried under win).
To be on a safe side, I have placed the same data on ftp server ftp://ftp.nd.rl.ac.uk/scratch/abuts/Ticket_9995/ and put there also the processed workspace MAP05935MD.nxs which can be loaded as nexus file and shows the same behaviour as nxspe loaded and converted using SofWQ3 workspace.
E.g. Load using firefox from the url above and run
Load(Filename='D:\users\abuts\Downloads\MAP05935MD.nxs', OutputWorkspace='MAP05935MD', LoaderName='LoadNexusProcessed', LoaderVersion=1) plotSlice('MAP05935MD') # -- looks bad
right click on the workspace and plot manually -- good.
comment:7 Changed 6 years ago by Owen Arnold
- Blocking 10647 added
- Blocked By 10365 added
Reference pre-tickets that were stopping me from working on this.
comment:11 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 10837