Ticket #4471: ManagedWorkspaceIssue.py

File ManagedWorkspaceIssue.py, 786 bytes (added by Owen Arnold, 9 years ago)
Line 
1WishFileToTest = 'WISH00016748.raw'
2
3#Load it as a managed workspace
4Load(Filename=WishFileToTest,OutputWorkspace='InMemory')
5SmoothNeighbours(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.
8Load(Filename=WishFileToTest,OutputWorkspace='OnDisk')
9SmoothNeighbours(InputWorkspace='OnDisk',OutputWorkspace='y',RadiusUnits='NumberOfPixels',Radius='3',NumberOfNeighbours='35')
10
11result = CheckWorkspacesMatch(mtd['x'],mtd['y'],CheckType="1",CheckAxes="1",CheckSpectraMap="1",CheckInstrument="1",CheckMasking="1")
12if not "Success" != result.getPropertyValue("Result"):
13        print "Doesn't work on Managed Workspace"
14        print result.getPropertyValue("Result")