Ticket #9063 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

Allow use of parameters to override geometric values in ConvertUnits

Reported by: Stuart Campbell Owned by: Stuart Campbell
Priority: major Milestone: Release 3.4
Component: Framework Keywords:
Cc: Blocked By:
Blocking: Tester: Dan Nixon

Description (last modified by Stuart Campbell) (diff)

In the same way that if Efixed is specified on the instrument, we have had a request to allow the other parameters that are used in ConvertUnits(). I propose the names of the parameters should be:

  • L1
  • L2
  • TwoTheta
  • Efixed
  • Emode

Ensure ConvertUnits documentation is updated.

Change History

comment:1 Changed 7 years ago by Stuart Campbell

  • Status changed from new to assigned
  • Description modified (diff)

comment:2 Changed 7 years ago by Russell Taylor

For info: It's been pointed out that there is the EditInstrumentGeometry algorithm, though I think I still prefer the sugested way as it allows for defining it at runtime or in a parameter file.

comment:3 Changed 7 years ago by Stuart Campbell

  • Status changed from assigned to inprogress

comment:4 Changed 7 years ago by Stuart Campbell

Added L1,L2 and TwoTheta pars to override geometry

Also added getters/setters similar to getEFixed() Exposed to Python

refs #9063

Changeset: 7a3e9f9fb4a0be251654bc06d8eaff7428476bfd

comment:5 Changed 7 years ago by Stuart Campbell

Added some debug statements. refs #9063

Changeset: 34bfb3740b1f3c36b2a82e94f41ff39c8d79c5dc

comment:6 Changed 7 years ago by Stuart Campbell

Added unit test to check for parameters.

refs #9063

Changeset: f020ac1139c6d972c27ad5d729c48d9281d81585

comment:7 Changed 7 years ago by Stuart Campbell

Updated expected results to be correct number!

refs #9063

Changeset: 5bb1bc91840b22815d88a12dcf03ebe8e7de0af9

comment:8 Changed 7 years ago by Russell Taylor

Unfortunately, the performance tests are showing this to be very expensive. We're going to have to improve performance or think of a different way of doing it.

comment:9 Changed 7 years ago by Stuart Campbell

Disable override parameters unit test. refs #9063

I have done this to try and measure the effect on performance (of ConvertUnits) for having the option of overriding parameters be there but not using it.

Changeset: 334bb07a7e7d5c9a966da8a129a738b24ab24132

comment:10 Changed 6 years ago by Nick Draper

  • Milestone changed from Release 3.2 to Release 3.3

comment:11 Changed 6 years ago by Stuart Campbell

  • Priority changed from critical to major
  • Milestone changed from Release 3.3 to Release 3.4

comment:12 Changed 6 years ago by Stuart Campbell

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

This method of doing it is too slow.

comment:13 Changed 6 years ago by Dan Nixon

  • Status changed from verify to verifying
  • Tester set to Dan Nixon

comment:14 Changed 6 years ago by Dan Nixon

  • Status changed from verifying to closed

comment:15 Changed 5 years ago by Nick Draper

  • Resolution changed from wontfix to fixed

Somehow these slipped through without a resolution. Set to Fixed.

comment:16 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 9906

Note: See TracTickets for help on using tickets.