Ticket #7382 (assigned)

Opened 7 years ago

Last modified 5 years ago

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:1 Changed 7 years ago by Owen Arnold

Last edited 7 years ago by Owen Arnold (previous) (diff)

comment:2 Changed 7 years ago by Nick Draper

  • Owner set to Roman Tolchenov
  • Status changed from new to assigned
  • Description modified (diff)

comment:3 Changed 7 years ago by Nick Draper

  • Status changed from assigned to new

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

comment:5 Changed 7 years ago by Nick Draper

  • Status changed from new to assigned

Bulk move to assigned at the introduction of the triage step

comment:6 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 8228

Note: See TracTickets for help on using tickets.