Ticket #8404 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

LoadFullprofResolution property to set correspondence between fullprof bank in workspace in group

Reported by: Anders Markvardsen Owned by: Karl Palmen
Priority: major Milestone: Release 3.1
Component: Diffraction Keywords:
Cc: zhouw@… Blocked By: #8402
Blocking: Tester: Wenduo Zhou

Description (last modified by Karl Palmen) (diff)

Add optional property to enable the user to determine, which workspace in the group has the parameters of which bank in the .irf file.

When this property is specified do not enforce the restriction of #8402 that the number of workspaces in the group must equal the number of banks in the .irf file. It can be less, but compatible with the new property.

Apply the fullprof instrument parameters to the spectra specified

Change History

comment:1 Changed 7 years ago by Karl Palmen

  • Description modified (diff)
  • Summary changed from LoadFullprofResolution add SpectraToApplyTo to LoadFullprofResolution property to set correspondence between fullprof bank in workspace in group

comment:2 Changed 7 years ago by Karl Palmen

An example:

If banks is 2,3,1 and the new property is 1,2,4

then fullprof bank 2 is put into workspace groupname_1, bank 3 into groupname_2 and bank 1 into groupname_4.

comment:3 Changed 7 years ago by Karl Palmen

  • Status changed from new to inprogress

comment:4 Changed 7 years ago by Karl Palmen

Add code to set up workstation/bank correspondence re #8404

Signed-off-by: Karl Palmen <karl.palmen@…>

Changeset: 20fac33e325c2a59a5a3aea17f8057f0634cadf0

comment:5 Changed 7 years ago by Karl Palmen

Fix function definition of new function re #8404

Signed-off-by: Karl Palmen <karl.palmen@…>

Changeset: ef11cfd6af93e30ce6f3c412a85ff79710b09b99

comment:6 Changed 7 years ago by Karl Palmen

Complete code for desired effect re #8404

Passes unit test as is.

Signed-off-by: Karl Palmen <karl.palmen@…>

Changeset: a6098d0cd1a370cb68c843c1827847a317e383aa

comment:7 Changed 7 years ago by Karl Palmen

Remove one size_t/int warning re #8404

Signed-off-by: Karl Palmen <karl.palmen@…>

Changeset: 86306253a8721a898b591c9420e1c4e57f665818

comment:8 Changed 7 years ago by Karl Palmen

Extend unit test to test WorkspacesForBanks re #8404

In the course of this, I relaxed the #workspaces = #banks requirement whenever WorkspacesForBanks is used.

Signed-off-by: Karl Palmen <karl.palmen@…>

Changeset: 760ed510d50f9c8f39ebc83da94b2fb217668c97

comment:9 Changed 7 years ago by Karl Palmen

Attempt to fix compiler warning in getProfNumber re #8404

Signed-off-by: Karl Palmen <karl.palmen@…>

Changeset: f72f64bcbeb0f4d0b7de8afc6a66e1c7668437d9

comment:10 Changed 7 years ago by Karl Palmen

To test check the unit tests are correct and adequate and the documentation is good.

Run with various combinations of the Banks and WorkspacesForBanks properties and verify the the parameters are transfered to the Ikeda-Carpenter functions of the instruments. You may use the files attached to #8402 for this.

Last edited 7 years ago by Karl Palmen (previous) (diff)

comment:11 Changed 7 years ago by Karl Palmen

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

comment:12 Changed 7 years ago by Wenduo Zhou

  • Status changed from verify to verifying
  • Tester set to Wenduo Zhou

comment:13 Changed 7 years ago by Wenduo Zhou

Test was passed.

A suggestion is that it needs a better error message if 'WorkspacesForBanks' is set to integer that is not a valid BankID.

If Banks has fewer number of elements than those in 'WorkspaceForBanks', I am not sure what happens for the workspaces given but without bank number associated. For example, Banks = [1, 2, 3] and WorkspacesForBanks = [5, 4, 3, 2, 1], what happens with workspaces 1 and 2?

comment:14 Changed 7 years ago by Wenduo Zhou

  • Status changed from verifying to closed

Merge remote-tracking branch 'origin/feature/8404_workspace_bank_correspondence'

Full changeset: 4aa03616d71c2757b6c0ae17cff79c3087b3cb62

comment:15 Changed 7 years ago by Karl Palmen

The answer to Wenduo's question in comment 13 is that workspaces 1 and 2 do not get any parameters set by the execution of the algorithm.

comment:16 Changed 7 years ago by Nick Draper

  • Component changed from Framework to Diffraction

comment:17 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 9249

Note: See TracTickets for help on using tickets.