Ticket #8326 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

Live Data: End of run 'rename' option does not reliably work

Reported by: Russell Taylor Owned by: Russell Taylor
Priority: critical Milestone: Release 3.0
Component: Framework Keywords: LiveData
Cc: Blocked By:
Blocking: Tester: Michael Reuter

Description

MonitorLiveData tries to get the run number out of the final workspace (at line 183-5) by calling ExperimentInfo::getRunNumber (which looks for it in the logs). However, this will fail if that workspace is not a MatrixWorkspace (e.g. a Table or and MD workspace), as well as if whatever analysis has been run has not propagated the logs right through.

This then means that at the final workspace from the run will just get a suffix of 0 instead of the actual run number. This is a particular problem when trying to build up a view of multiple runs - e.g. in the VSI.

Probably, the proper fix is to get the run number into the ILiveListener interface. As a quick(er) & dirty fix though I think the thing to do is to try and get it from the 'chunk' workspace as soon as extractData() has been called (this is in LoadLiveData).

Change History

comment:1 Changed 7 years ago by Russell Taylor

  • Status changed from new to inprogress

comment:2 Changed 7 years ago by Russell Taylor

Re #8326. Get the run number from the unprocessed workspace.

This tries to extract the run number from the workspace returned by ILiveListener::extractData() instead of the final workspace that results from whatever workflow the user specifies. In the latter case, the run number may not be available because the workspace is not of the assumed type, or it may not have been passed right through the analysis. This way improves our odds. It would still fail if, e.g., a WorkspaceGroup is passed back.

Probably a better implementation for later would be for this to be available in the ILiveListener interface.

Changeset: a8a3f844c9ecf5ecfa7c8395f8f8011bb80f45f8

comment:3 Changed 7 years ago by Russell Taylor

Re #8326. exec was public for a reason.

Changeset: 9b428efa29bc8deb2699bc7a115a80622f8af0a8

comment:4 Changed 7 years ago by Russell Taylor

Re #8326. Add some testing.

Changeset: 5ad85958509a3c960a3406637e5a88073fab6a0f

comment:5 Changed 7 years ago by Russell Taylor

Waiting for Michael to check that this works for the workflow with which he first encountered the problem.

comment:6 Changed 7 years ago by Russell Taylor

  • Status changed from inprogress to verify
  • Resolution set to fixed

Michael to test - he knows how to do so.

comment:7 Changed 7 years ago by Michael Reuter

  • Status changed from verify to verifying
  • Tester set to Michael Reuter

comment:8 Changed 7 years ago by Michael Reuter

  • Status changed from verifying to closed

Merge remote-tracking branch 'origin/bugfix/8326_live_run_number'

Full changeset: 24566bfe9e2e54c4c02f4946e872475888cfb0d8

comment:9 Changed 7 years ago by Russell Taylor

#8342 has been created to look at moving this into the ILiveListener interface.

comment:10 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 9171

Note: See TracTickets for help on using tickets.