Ticket #7382 (assigned)
PythonAlgorithm history bug
Reported by: | Martyn Gigg | Owned by: | Roman Tolchenov |
---|---|---|---|
Priority: | major | Milestone: | Backlog |
Component: | Python | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description (last modified by Nick Draper) (diff)
class SimulateMuonData(PythonAlgorithm):
def PyInit(self):
self.declareProperty("Instrument","HIFI",doc="Instrument to simulate") self.declareProperty(WorkspaceProperty("OutputWorkspace","",Direction.Output),"Simulated Data") self.declareProperty(lots of other parameters to describe sample, etc)
def PyExec(self):
InstName=self.getProperty("Instrument").value ws = CreateSimulationWorkspace(InstName,(0.0,BinWidth,BinWidth*NBins)) for h in range(ws.getNumberHistograms()):
for j in range(NBins):
ws.dataY(h)[j]=... ws.dataE(h)[j]=...
self.setProperty("OutputWorkspace",ws)
It does work, however...
When I look at the History of the output workspace it only contains the CreateSimulationWorkspace call and no reference to SimulateMuonData - and therefore no record of all the other parameters I used.
Change History
comment:2 Changed 7 years ago by Nick Draper
- Owner set to Roman Tolchenov
- Status changed from new to assigned
- Description modified (diff)
comment:4 Changed 7 years ago by Nick Draper
- Milestone changed from Release 2.6 to Backlog
Moved to backlog at the code freeze for R2.6