Ticket #9689 (closed: fixed)

Opened 6 years ago

Last modified 5 years ago

Fury bin width should only allow factors of bin range.

Reported by: Samuel Jackson Owned by: Dan Nixon
Priority: major Milestone: Release 3.3
Component: Indirect Inelastic Keywords:
Cc: spencer.howells@… Blocked By:
Blocking: Tester: Martyn Gigg

Description (last modified by Samuel Jackson) (diff)

Currently the bin width used can be set to anything, which can be fairly annoying for users. I've had a couple of requests to make it only allow input that is a factor of the ranges.

Change History

comment:1 Changed 6 years ago by Samuel Jackson

  • Description modified (diff)

comment:2 Changed 6 years ago by Nick Draper

  • Milestone changed from Release 3.2 to Backlog

Moved to Backlog at the code freeze of release 3.2

comment:3 Changed 6 years ago by Dan Nixon

  • Owner changed from Samuel Jackson to Dan Nixon
  • Status changed from new to assigned

comment:4 Changed 6 years ago by Dan Nixon

  • Status changed from assigned to inprogress
  • Milestone changed from Backlog to Release 3.3

comment:5 Changed 6 years ago by Dan Nixon

Added error message when bin width is not factor of bin range

Refs #9689

Changeset: c7de6418f9b8f54bfa18a3d101e3646b8706114c

comment:6 Changed 6 years ago by Dan Nixon

Change bin width to fit 10 bins when a range end is changed

Ensured width always holds a valid value

Refs #9689

Changeset: a132e17c513ece41d5c8ebabbe27d7b68ef75172

comment:7 Changed 6 years ago by Dan Nixon

Made Fury rebin param validation a little smoother

Will attempt to maintain a valid set of values as close as possible to any invalid values entered

Refs #9689

Changeset: 3cbd846ac971aefd7ec9eb0726dd0afe6712c7cb

comment:8 Changed 6 years ago by Dan Nixon

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

To test:

  • Open Indirect Data Analysis >> Fury
  • Attempt setting the rebin range and bin width
  • Notice that the bin width will default to the nearest factor of the range when a value is entered that is not a factor
  • he same should also happen when a new range is entered

comment:9 Changed 6 years ago by Dan Nixon

Just use warning message box

Refs #9689

Changeset: 58bf487db6df74262f36654228088e7df0fcdcbd

comment:10 Changed 6 years ago by Roman Tolchenov

  • Status changed from verify to verifying
  • Tester set to Roman Tolchenov

comment:11 Changed 6 years ago by Roman Tolchenov

  • Status changed from verifying to reopened
  • Resolution fixed deleted

Tested on win7. After entering a wrong value I get a message but the value doesn't change to a valid one.

comment:12 Changed 6 years ago by Dan Nixon

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

My mistake, I haven't updated the testing instructions.

After discussing this with Spencer it was thought to be best to just give a warning instead of trying to find an appropriate bin width. What you describe sounds like what should happen assuming the message appears in an information box.

comment:13 Changed 6 years ago by Roman Tolchenov

Is the bin width difficult to calculate? Did you consider using a number of bins instead?

comment:14 Changed 6 years ago by Dan Nixon

  • Status changed from verify to reopened
  • Resolution fixed deleted

comment:15 Changed 6 years ago by Dan Nixon

  • Status changed from reopened to inprogress

Work in progress, adding new binning options to Fury

Refs #9689

Changeset: c681e4cf3d216f44e2846d42c0f7f6edcc584c2c

comment:16 Changed 6 years ago by Dan Nixon

Checkpoint: added new Fury algorithm

Refs #9689

Changeset: e81c94760c42225d53d4ff5c811096938c36d23e

comment:17 Changed 6 years ago by Dan Nixon

Added docs for Fury algorithm

Refs #9689

Changeset: 5c1739be35cded9e2388f427ae70fd45671ef56f

comment:18 Changed 6 years ago by Dan Nixon

Use new Fury algorithm on IDA:Fury interface

Refs #9689

Changeset: 588e018c2a3ad1326df35d49cbd8166f2abb5d8f

comment:19 Changed 6 years ago by Dan Nixon

Merge branch 'bugfix/9689_only_allow_factors_of_range_in_fury_bin_width' into develop

Conflicts:

Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/IndirectDataAnalysis.ui

Refs #9689

Changeset: 729d2d26299af956eefbca4411795b20006377bf

comment:20 Changed 6 years ago by Dan Nixon

Get resolution from IPF, little Qt signal refactoring

Refs #9689

Changeset: f1cc077df7eac7bd95838d5854678e3066568e63

comment:21 Changed 6 years ago by Dan Nixon

Moved res bin calculation to algorithm, small corrections

Refs #9689

Changeset: 0bfa39de9a8fa4e426ead11dee5b394de7aa63f7

comment:22 Changed 6 years ago by Dan Nixon

Enable range selector movement

Refs #9689

Changeset: f4944f2dcee0c558cf6912b910406e88b6242791

comment:23 Changed 6 years ago by Dan Nixon

Merge branch 'master' into bugfix/9689_only_allow_factors_of_range_in_fury_bin_width

Conflicts:

Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/IndirectDataAnalysis.ui

Refs #9689

Changeset: 3885e9d9ea0b7f29f7abda44a5bdb0894e4f2379

comment:24 Changed 6 years ago by Dan Nixon

Disable info only properties, added validation to algorithm

Refs #9689

Changeset: 551dc9e3f94ccfd039f1501ebffe9df22e616c2d

comment:25 Changed 6 years ago by Dan Nixon

Added sample logs, Python refactoring

Refs #9689

Changeset: 1bb07341560961fce16e07d03cd259405f621122

comment:26 Changed 6 years ago by Dan Nixon

  • Cc spencer.howells@… added

comment:27 Changed 6 years ago by Dan Nixon

Link ELow and EHigh on Fury

Refs #9689

Changeset: 4f10274baad24a4b6cd5f363d4780cd5b2f9f507

comment:28 Changed 6 years ago by Dan Nixon

Only recalculate values when range selector is relased

Refs #9689

Changeset: b950f44d5cffd85cb5674ad89ad484cfdf588568

comment:29 Changed 6 years ago by Dan Nixon

Give warning when fury resolution bins < 5

Refs #9689

Changeset: ef7481bc67b620f97e6ec7da029d46dd7ca369bf

comment:30 Changed 6 years ago by Dan Nixon

Move res bins warning to be shown after changing values

Refs #9689

Changeset: 21a2743db87f1d373ed960ce9ca435c74532199e

comment:31 Changed 6 years ago by Dan Nixon

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

New to test:

  • Open Indirect > Data Analysis > Fury
  • Load a sample file (e.g. irs26173_graphite002_red.nxs from system tests)
  • Load a resolution file (e.g. irs26173_graphite002_res.nxs from system tests)
  • Move the range selectors and notice the binning recalculation when they are released
  • Increase the sample binning such that the number resolution bins drops below 5, this should give a warning
  • Run fury, open the sample logs for the *_iqt workspace and check that the fury_rebin_* entries match the ELow, EHigh and EWidth values in the UI

comment:32 Changed 6 years ago by Anders Markvardsen

  • Status changed from verify to verifying
  • Tester changed from Roman Tolchenov to Anders Markvardsen

comment:33 Changed 6 years ago by Anders Markvardsen

  • Status changed from verifying to verify
  • Tester Anders Markvardsen deleted

Ups only just noticed Roman in the progress of testing this one. Returned in to testing pull

comment:34 Changed 6 years ago by Martyn Gigg

  • Status changed from verify to verifying
  • Tester set to Martyn Gigg

comment:35 Changed 6 years ago by Dan Nixon

  • Status changed from verifying to closed

Merge branch 'master' into bugfix/9689_only_allow_factors_of_range_in_fury_bin_width

Conflicts:

Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/IndirectDataAnalysis.ui Code/Mantid/MantidQt/CustomInterfaces/src/FuryFit.cpp

Full changeset: 3669e6870a8348a260f49ecdd06ae78140cee40f

comment:36 Changed 6 years ago by Dan Nixon

Merge branch 'master' into bugfix/9689_only_allow_factors_of_range_in_fury_bin_width

Conflicts:

Code/Mantid/MantidQt/CustomInterfaces/inc/MantidQtCustomInterfaces/IndirectDataAnalysis.ui

Refs #9689

Full changeset: 3885e9d9ea0b7f29f7abda44a5bdb0894e4f2379

comment:37 Changed 6 years ago by Martyn Gigg

Merge branch 'bugfix/9689_only_allow_factors_of_range_in_fury_bin_width'

Full changeset: fe97d5fd6a54e4491a4c3ec107dfe19332ead0b7

comment:38 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 10531

Note: See TracTickets for help on using tickets.