Ticket #9369: test_hist.py

File test_hist.py, 391 bytes (added by Samuel Jackson, 6 years ago)

Testing script

Line 
1trans = Load('INTER00013463.nxs')
2CreateTransmissionWorkspaceAuto(trans, OutputWorkspace='Test')
3DeleteWorkspace(trans)
4def printHistory(algHist, depth=1):
5        for child in algHist.getChildHistories():
6                print ''.join('>'*depth) + child.name()
7                printHistory(child, depth+1)
8
9t = mtd["Test"]
10h=t.getHistory()
11l=h.getAlgorithmHistories()
12for child in l:
13        print child.name()
14        printHistory(child)