Ticket #9369: test_hist.py
File test_hist.py, 391 bytes (added by Samuel Jackson, 6 years ago) |
---|
Line | |
---|---|
1 | trans = Load('INTER00013463.nxs') |
2 | CreateTransmissionWorkspaceAuto(trans, OutputWorkspace='Test') |
3 | DeleteWorkspace(trans) |
4 | def printHistory(algHist, depth=1): |
5 | for child in algHist.getChildHistories(): |
6 | print ''.join('>'*depth) + child.name() |
7 | printHistory(child, depth+1) |
8 | |
9 | t = mtd["Test"] |
10 | h=t.getHistory() |
11 | l=h.getAlgorithmHistories() |
12 | for child in l: |
13 | print child.name() |
14 | printHistory(child) |