Ticket #5366 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

Accumulation mode for histograms warning

Reported by: Peter Peterson Owned by: Russell Taylor
Priority: minor Milestone: Release 2.5
Component: Mantid Keywords: LiveData, ADARA
Cc: Blocked By:
Blocking: Tester: Vickie Lynch

Description

While the code will do what it is told, if somebody uses add mode with histograms the data will look like exponential growth in number of neutrons measured.

Change History

comment:1 Changed 8 years ago by Russell Taylor

  • Keywords LiveData, ADARA added

comment:2 Changed 8 years ago by Nick Draper

  • Milestone changed from Release 2.2 to Release 2.3

comment:3 Changed 8 years ago by Nick Draper

  • Milestone changed from Release 2.3 to Release 2.4

Moved to release 2.4

comment:4 Changed 8 years ago by Nick Draper

  • Milestone changed from Release 2.4 to Release 2.5

Moved at the code freeze for release 2.4

comment:5 Changed 8 years ago by Russell Taylor

  • Status changed from new to accepted

comment:6 Changed 8 years ago by Russell Taylor

Re #5366. Disable 'Add' option in combobox for histogram listeners.

And select 'Replace' by default instead. Marginally smarter way of doing it than the previous way.

Changeset: e00f644e66074282abce6672eb2654ff18c91db6

comment:7 Changed 8 years ago by Russell Taylor

Re #5366. Minor clean-ups in LiveDataAlgorithm code.

Changeset: 353f855fcb9af834df2b94f6d36983b6e7ea512a

comment:8 Changed 8 years ago by Russell Taylor

Re #5366. Forbid accumulating chunks by adding for histograms.

Changeset: 99af8626a03787d97a5c98ad3afb430b3043becb

comment:9 Changed 8 years ago by Russell Taylor

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

To test:

  • In the StartLiveData GUI, observe that 'Add' is greyed out in the 'Accumulation Method' combobox if a histogram listener is selected (any ISIS instrument), and if 'Add' was previously selected it will have changed to 'Replace'. Check also that 'Add' is re-enabled if a listener that passes back an event workspace is selected (e.g. FakeEventDataListener).
  • To test the restriction in the underlying algorithm, you can try it via Python. Note that if you can't connect to the chosen instrument, that error gets in first (and is worth testing). The command StartLiveData("ISISHistoDataListener",OutputWorkspace='ws') will test that 'Add' (the default) is not allowed as the AccumulationMethod. Do check that the other options are permitted.
Last edited 8 years ago by Russell Taylor (previous) (diff)

comment:10 Changed 8 years ago by Russell Taylor

  • Status changed from verify to reopened
  • Resolution fixed deleted

It's been pointed out that validateInputs() can get called quite a lot and it might not be desirable to repeatedly connect & disconnect to the live stream.

Last edited 8 years ago by Russell Taylor (previous) (diff)

comment:11 Changed 8 years ago by Russell Taylor

  • Status changed from reopened to accepted

comment:12 Changed 8 years ago by Russell Taylor

Re #5366. Ability to connect not checked in validateInputs().

Repeatedly connecting/disconnecting every time validateInputs was called is undesirable. We can now create a listener without connecting (#6553), so we can still check whether this is asking to add histograms together.

Changeset: c091e9a2cf9ce3818310cae532c56385f220c08f

comment:13 Changed 8 years ago by Russell Taylor

Re #5366. Minor re-jig now we can create a listener w/o connecting.

This has removed the possibility that the method will throw because the listener cannot connect.

Changeset: e8f76299f34f2001e8a0d0da80fbe22c1f58bd4f

comment:14 Changed 8 years ago by Russell Taylor

  • Blocked By 6553 added

comment:15 Changed 8 years ago by Russell Taylor

  • Blocked By 6553 removed

comment:16 Changed 8 years ago by Russell Taylor

  • Blocked By 6553 added

comment:17 Changed 8 years ago by Russell Taylor

  • Blocked By 6553 removed

comment:18 Changed 8 years ago by Russell Taylor

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

Changes in #6553 (blocking/blocked by is broken) have enabled me to do this without connecting to an actual socket.

The testing instructions in comment:9 are mostly still valid, with the exception that nothing checks a connection can be made (ahead of the algorithm starting to execute, at which point it will of course fail).

comment:19 Changed 8 years ago by Vickie Lynch

  • Status changed from verify to verifying
  • Tester set to Vickie Lynch

comment:20 Changed 8 years ago by Vickie Lynch

  • Status changed from verifying to closed

All Russell's suggestions in "To test" work

comment:21 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 6212

Note: See TracTickets for help on using tickets.