1 | WishFileToTest = 'WISH00016748.raw' |
---|
2 | |
---|
3 | #Load it as a managed workspace |
---|
4 | Load(Filename=WishFileToTest,OutputWorkspace='InMemory') |
---|
5 | SmoothNeighbours(InputWorkspace='InMemory',OutputWorkspace='x',RadiusUnits='NumberOfPixels',Radius='3',NumberOfNeighbours='35') |
---|
6 | |
---|
7 | #On my machine at least, loading the second workspace will end up managed. |
---|
8 | Load(Filename=WishFileToTest,OutputWorkspace='OnDisk') |
---|
9 | SmoothNeighbours(InputWorkspace='OnDisk',OutputWorkspace='y',RadiusUnits='NumberOfPixels',Radius='3',NumberOfNeighbours='35') |
---|
10 | |
---|
11 | result = CheckWorkspacesMatch(mtd['x'],mtd['y'],CheckType="1",CheckAxes="1",CheckSpectraMap="1",CheckInstrument="1",CheckMasking="1") |
---|
12 | if not "Success" != result.getPropertyValue("Result"): |
---|
13 | print "Doesn't work on Managed Workspace" |
---|
14 | print result.getPropertyValue("Result") |
---|