Ticket #8753: check_alg_mon.py
| File check_alg_mon.py, 469 bytes (added by Gesner Passos, 7 years ago) |
|---|
| Line | |
|---|---|
| 1 | |
| 2 | OUT = 'trans_test_rear' |
| 3 | |
| 4 | trans_test_rear = mtd[OUT] |
| 5 | |
| 6 | hist = trans_test_rear.getHistory() |
| 7 | |
| 8 | index = 0 |
| 9 | final_index = 500 |
| 10 | |
| 11 | try: |
| 12 | while True: |
| 13 | try: |
| 14 | alg = hist.getAlgorithm(index) |
| 15 | except ValueError: |
| 16 | index +=1 |
| 17 | continue |
| 18 | index+=1 |
| 19 | if alg.name() == 'ExtractSingleSpectrum': |
| 20 | final_index = index + 3 |
| 21 | print str(alg) |
| 22 | |
| 23 | if alg.name() == 'CalculateFlatBackground': |
| 24 | print str(alg) |
| 25 | |
| 26 | if index > final_index: |
| 27 | break |
| 28 | |
| 29 | |
| 30 | except IndexError: |
| 31 | print 'finished' |
| 32 |
