Skip to content

Commit

Permalink
Re #7822. Remove hoop jumping.
Browse files Browse the repository at this point in the history
We no longer need this now the live listener has been updated to carry
over the current value of all logs.
  • Loading branch information
RussellTaylor committed Oct 1, 2013
1 parent 2dec716 commit 26d78b5
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,7 @@ def to_live_script(self):

script = """StartLiveData(UpdateEvery='10',Instrument='"""
script += self.instrument_name
script += """',ProcessingScript='"""

# Have to jump through this hoop because chunks after the first have an empty EnergyRequest property
script += """if mtd.doesExist(\""""
script += output_workspace_name
script += """\"): input.run().addProperty("EnergyRequest",mtd[\""""
script += output_workspace_name
script += """\"].getRun()["EnergyRequest"],True)\\n"""
script += """',ProcessingScript='"""
script += DgsReductionScripter.TOPLEVEL_WORKFLOWALG + '('
script += options
script += ")"
Expand All @@ -124,7 +117,6 @@ def to_live_script(self):
script += output_workspace
script += ")\n"

print script
return script

def to_batch(self):
Expand Down

0 comments on commit 26d78b5

Please sign in to comment.