Ticket #2021 (closed: fixed)
Force a workspace to be a histogram
Reported by: | Peter Peterson | Owned by: | Stuart Campbell |
---|---|---|---|
Priority: | minor | Milestone: | Iteration 26 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Peter Peterson |
Description
Since most of the math operations (+-*/) are implemented for an event workspace, it would be useful to have an algorithm that converts an event workspace into a workspace2d (losing the events). Currently the rebin algorithm does this if the input and output workspace names are different, but it would be useful for something to do it in-place without having to carry around the binning parameters separately. This will become increasingly important as instruments with larger event lists (NOMAD, EQSANS, ...) start using mantid. It is already an issue for batch processing POWGEN data.
Change History
comment:3 Changed 10 years ago by Nick Draper
- Status changed from new to assigned
- Owner set to Russell Taylor
comment:4 Changed 10 years ago by Russell Taylor
A solution for the time being is the CloneWorkspace algorithm. For as long as this remains Event-unaware it will do what you want.
comment:5 Changed 10 years ago by Peter Peterson
- Owner changed from Russell Taylor to Stuart Campbell
comment:7 Changed 10 years ago by Stuart Campbell
Decided to create a new algorithm called ConvertToMatrxWorkspace() that will basically be a copy of CloneWorkspace() so we will not get bitten when CloneWorkspace() changes and becomes event aware.
comment:9 Changed 10 years ago by Stuart Campbell
- Status changed from accepted to verify
- Resolution set to fixed
comment:10 Changed 10 years ago by Peter Peterson
- Status changed from verify to verifying
- Tester set to Peter Peterson
comment:11 Changed 10 years ago by Peter Peterson
- Status changed from verifying to closed
This works as advertised.
comment:12 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 2868
(In [7880]) Fix Windows. Re #2021.