Ticket #391 (closed: fixed)
Remove SpectraDetectorMap dependency on its containing workspace
Reported by: | Russell Taylor | Owned by: | Russell Taylor |
---|---|---|---|
Priority: | major | Milestone: | Iteration 15 |
Component: | Keywords: | ||
Cc: | Blocked By: | ||
Blocking: | Tester: |
Description
There's a problem with SpectraDetectorMap in that it holds a pointer to the workspace it belongs to, but in theory a map can be shared between workspaces. I'm going to move certain methods up into MatrixWorkspace to resolve this.
Change History
comment:1 Changed 12 years ago by Russell Taylor
- Status changed from new to assigned
- type changed from enhancement to defect
comment:2 Changed 12 years ago by Russell Taylor
(In [1901]) Removed dependency on containing workspace from SpectraDetectorMap. This entailed moving getDetector method up into MatrixWorkspace. Also, it now takes a workspace index instead of a spectrum number, meaning that algorithms typically (though not always) need not know about either the spectraMap or the spectra numbers (from the axis). Re #391.
comment:9 Changed 12 years ago by Russell Taylor
- Status changed from assigned to closed
- Resolution set to fixed
comment:10 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 1239