Ticket #2021 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

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:1 Changed 10 years ago by Russell Taylor

(In [7880]) Fix Windows. Re #2021.

comment:2 Changed 10 years ago by Russell Taylor

I meant Re #2003.

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:6 Changed 10 years ago by Stuart Campbell

  • Status changed from assigned to accepted

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:8 Changed 10 years ago by Stuart Campbell

(In [8021]) Initial version that is a copy of CloneWorkspace(). refs #2021

comment:9 Changed 10 years ago by Stuart Campbell

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

(In [8022]) Initial unit test - clone of CloneWorkspaceTest() for now. fixes #2021

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

Note: See TracTickets for help on using tickets.