Ticket #11579: last_alogrithm_issue.py
File last_alogrithm_issue.py, 401 bytes (added by Anton Piccardo-Selg, 5 years ago) |
---|
Line | |
---|---|
1 | CreateWorkspace(DataX = [1,1,1], DataY = [1,1,1], OutputWorkspace = 'testWs') |
2 | testWs = mtd['testWs'] |
3 | |
4 | RenameWorkspace(InputWorkspace= testWs, OutputWorkspace = 'renamed') |
5 | rename = mtd['renamed'] |
6 | |
7 | print rename.getHistory() |
8 | # This works |
9 | print rename.getHistory().getAlgorithm(rename.getHistory().size() -2) |
10 | #This does not work |
11 | print rename.getHistory().getAlgorithm(rename.getHistory().size() -1) |