Ticket #6197 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

Workspace mapping methods must handle grouped detectors

Reported by: Nick Draper Owned by: Nick Draper
Priority: critical Milestone: Release 2.6
Component: Framework Keywords: Maintenance
Cc: Blocked By:
Blocking: #6067 Tester: Gesner Passos

Description (last modified by Nick Draper) (diff)

These are the methods that I think Stuart added to create vectors of detector_id given workspaces indexes and the other similar methods.

There was some concern that they might not all be capable of handling grouped detectors correctly.

Please check and expand as necessary.

Change History

comment:1 Changed 8 years ago by Nick Draper

  • Description modified (diff)

comment:2 Changed 8 years ago by Stuart Campbell

I don't remember adding anything - can you be more specific to where in the code to look?

comment:3 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:4 Changed 8 years ago by Nick Draper

  • Priority changed from critical to blocker

comment:5 Changed 7 years ago by Stuart Campbell

  • Milestone changed from Release 2.5 to Release 2.6

I haven't had chance to learn about this at all.

comment:6 Changed 7 years ago by Nick Draper

  • Keywords Maintenance added
  • Priority changed from blocker to critical

comment:7 Changed 7 years ago by Nick Draper

  • Owner changed from Stuart Campbell to Nick Draper
  • Status changed from new to accepted

comment:8 Changed 7 years ago by Nick Draper

Both functions in MatrixWorkspace already have boolean properties that make them work as we want.

Set a default so that the default is to handle groups properly.

Added a hasGroupedDetectors method as people were using the mapping methods to answer that question which was misleading.

Changed all usages where the default was specified to use the default.

Next steps are to hunt down all usages where the algorithm is written to throw on groups and improve, then remove the throw on groups option and code as is leads to lazy development.

comment:9 Changed 7 years ago by Nick Draper

re #6197 changed default for getDetectorIDToWorkspaceIndexMap

Changeset: 526705a8a65ed1e941f1d379eab2a56c2c320a26

comment:10 Changed 7 years ago by Nick Draper

  • Blocking 7241 added

comment:10 Changed 7 years ago by Nick Draper

  • Status changed from accepted to verify
  • Resolution set to fixed
  • Blocking 7241 removed

#7241 created to deal with remaining ussages of true

comment:11 Changed 7 years ago by Michael Reuter

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

comment:12 Changed 7 years ago by Michael Reuter

  • Status changed from verifying to reopened
  • Resolution fixed deleted

Missed setting the default for getDetectorIDToWorkspaceIndexMap in a few classes:

Code/Mantid/Framework/DataHandling/src/SaveToSNSHistogramNexus.cpp
Code/Mantid/Framework/DataHandling/src/LoadCalFile.cpp
Code/Mantid/Framework/Crystal/src/IntegratePeakTimeSlices.cpp

comment:13 Changed 7 years ago by Nick Draper

  • Status changed from reopened to accepted

comment:14 Changed 7 years ago by Nick Draper

Ah, people left spaces around false on those ones.

comment:16 Changed 7 years ago by Nick Draper

re #6197 get missing default usages

Changeset: 9b34998cfe3063281ece534206222d573c21bc02

comment:17 Changed 7 years ago by Russell Taylor

Note that there's a gcc warning at line 563 of MatrixWorkspaceTest: https://builds.sns.gov/job/ornl_clean_rhel6_develop/1987/warnings22Result/ (The line just needs deleting.)

comment:18 Changed 7 years ago by Nick Draper

re #6197 clear warning

Changeset: d11e93635df6bcd0c5b5d018138f570df683116d

comment:19 Changed 7 years ago by Nick Draper

  • Status changed from accepted to verify
  • Resolution set to fixed
  • Description modified (diff)

comment:20 Changed 7 years ago by Nick Draper

  • Blocking 6067 added

(In #6067) Subtickets for this are in the Blocked By list.

This ticket is complete when they are!

comment:21 Changed 7 years ago by Gesner Passos

  • Status changed from verify to verifying
  • Tester changed from Michael Reuter to Gesner Passos

comment:22 Changed 7 years ago by Gesner Passos

  • Status changed from verifying to reopened
  • Resolution fixed deleted

Missed setting the default for getDetectorIDToWorkspaceIndexMap in one class

Code/Mantid/Framework/Algorithms/src/MaskBinsFromTable.cpp:270

comment:23 Changed 7 years ago by Nick Draper

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

comment:24 Changed 7 years ago by Nick Draper

  • Status changed from verify to closed

Merge remote-tracking branch 'origin/feature/6197_group_handling'

comment:25 Changed 7 years ago by Nick Draper

  • Component changed from Mantid to Framework

comment:26 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 7043

Note: See TracTickets for help on using tickets.