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