Ticket #2827 (closed: fixed)
Segfault generated by retrieving wrong property name in python
Reported by: | Peter Peterson | Owned by: | Peter Peterson |
---|---|---|---|
Priority: | major | Milestone: | Iteration 28 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Vickie Lynch |
Description (last modified by Peter Peterson) (diff)
This is a bug seen explicitly in FindSNSNeXus, but it probably exists in other python algorithms. To reproduce it:
- In PyExec change the 10th line to be self.getProperty("UseWebService")
- Use the algorithm from another algorithm like SNSPowderReduction
Change History
comment:3 Changed 9 years ago by Nick Draper
- Milestone changed from Iteration 28 to Iteration 29
Bulk move of tickets at the end of iteration 28
comment:5 Changed 9 years ago by Peter Peterson
Here is an algorithm to call the broken version of FindSNSNeXus:
from MantidFramework import * class BrokenAlgorithm(PythonAlgorithm): def name(self): return "BrokenAlgorithm" def PyInit(self): pass def PyExec(self): import mantidsimple globals()["FindSNSNeXus"] = mantidsimple.FindSNSNeXus result = FindSNSNeXus(Instrument="PG3", RunNumber=1370, Extension="_event.nxs") print "***", result, "gives '%s'" % result.getProperty("ResultPath").value mtd.registerPyAlgorithm(BrokenAlgorithm())
comment:6 Changed 9 years ago by Peter Peterson
- Status changed from accepted to verify
- Resolution set to fixed
comment:7 Changed 9 years ago by Vickie Lynch
- Status changed from verify to verifying
- Tester set to Vickie Lynch
Note: See
TracTickets for help on using
tickets.