Ticket #4365 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

Create an algorithm that returns Min, similar to Max

Reported by: Andrei Savici Owned by: Andrei Savici
Priority: minor Milestone: Release 2.0
Component: Mantid Keywords:
Cc: perersonpf@… Blocked By:
Blocking: Tester: Jean Bilheux

Description

  1. Create an algorithm MaxMin that returns either min or max
  2. Derive Min and Max to call MaxMin as subalgorithm

Change History

comment:1 Changed 9 years ago by Andrei Savici

  • Status changed from new to accepted

comment:2 Changed 9 years ago by Andrei Savici

Base algorithm to calculate max or min. Refs #4365

Changeset: fa5bdd54a104c76a826dc697f36b3bf9196c44fe

comment:3 Changed 9 years ago by Andrei Savici

Test example

CreateWorkspace(OutputWorkspace='w',DataX='1,2,3,4,5,6,1,2,3,4,5,6',DataY='1,3,5,0,1,1,2,4,5,6',NSpec='2')
MaxMin(InputWorkspace='w',OutputWorkspace='min',ShowMin='1')
Min(InputWorkspace='w',OutputWorkspace='min1')
Last edited 9 years ago by Andrei Savici (previous) (diff)

comment:4 Changed 9 years ago by Andrei Savici

Added Min algorithm, and both Min and Max call Maxmin. Refs #4365

Changeset: a1612912e77d97b96b70bc3088d0b5bf0b48d906

comment:5 Changed 9 years ago by Andrei Savici

Added test tor Max, Min, and MaxMin. Refs #4365

Changeset: 8629155ac686a53da191e18aa510d317d1e23ef8

comment:6 Changed 9 years ago by Andrei Savici

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

comment:7 Changed 9 years ago by Jean Bilheux

  • Status changed from verify to verifying
  • Tester set to Jean Bilheux

comment:8 Changed 9 years ago by Jean Bilheux

  • Status changed from verifying to closed

works but I think the wiki should have an example to illustrate how it works.

comment:9 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5212

Note: See TracTickets for help on using tickets.