Ticket #11579: last_alogrithm_issue.py

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