Ticket #2005 (closed: invalid)

Opened 10 years ago

Last modified 5 years ago

Allow a SANS run set up in the GUI to be run in a Python loop

Reported by: Steve Williams Owned by: Steve Williams
Priority: major Milestone: Iteration 30
Component: MantidPlot Keywords:
Cc: Blocked By:
Blocking: Tester: Anders Markvardsen

Description

The command WavRangeReduction() should run with user file and run assignments that were set up in the SANS GUI.

Change History

comment:1 Changed 10 years ago by Steve Williams

  • Status changed from new to accepted

comment:2 Changed 10 years ago by Steve Williams

(In [7902]) CropWorkspace was failing for all workspaces containing TextAxis or NumericAxis! re #2005

comment:3 Changed 10 years ago by Steve Williams

After clicking "Load Mask", filling in run numbers and then clicking "Load Data" in the SANSRunWindow it will be possible to run a SANS reduction with a script like:

from ISISCommandInterface import *

wlist=[2.0,4.0,6.0,8.0,10.0,12.0,14.0]
for i in range(len(wlist)-1):
    wav1 = wlist[i]
    wav2 = wlist[i+1]
    # this should pick up all the settings from the gui
    reduced = WavRangeReduction(wav1, wav2, DefaultTrans, no_clean=True)
    outlist.append(reduced)

comment:4 Changed 10 years ago by Steve Williams

(In [7919]) The SANS GUI and Python scripting environment are now linked, allowing a run to be specified in the GUI and modified in a Python loop re #2005

comment:5 Changed 10 years ago by Steve Williams

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

comment:6 Changed 10 years ago by Nick Draper

  • Milestone changed from Iteration 26 to Iteration 27

Bulk move of tickets to iteration 27, if your ticket is essential for Iteration 26 then move it back.

comment:7 Changed 10 years ago by Nick Draper

  • Milestone changed from Iteration 27 to Iteration 26

Sorry I didn't mean to move these ones reverting back to It 26

comment:8 Changed 10 years ago by Mathieu Doucet

  • Status changed from verify to verifying
  • Tester set to Mathieu Doucet

comment:9 Changed 10 years ago by Mathieu Doucet

  • Status changed from verifying to closed

Reviewed the code. It works.

comment:10 Changed 10 years ago by Steve Williams

  • Status changed from closed to reopened
  • Resolution fixed deleted
  • Milestone changed from Iteration 26 to Iteration 27

comment:11 Changed 10 years ago by Steve Williams

  • Status changed from reopened to accepted

comment:12 Changed 10 years ago by Nick Draper

  • Milestone changed from Iteration 27 to Iteration 28

Bulk move of tickets at the end of iteration 27

comment:13 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 28 to Iteration 29

Bulk move of tickets at the end of iteration 28

comment:14 Changed 9 years ago by Nick Draper

  • Milestone changed from Iteration 29 to Iteration 30

Accepted and assigned tickets moved at iteration 29 code freeze

comment:15 Changed 9 years ago by Steve Williams

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

This has been superseded by ticket #2211 which will allow settings from the GUI to be exported to Python. There were problems doing it the way it is described.

comment:16 Changed 9 years ago by Anders Markvardsen

  • Status changed from verify to verifying
  • Tester changed from Mathieu Doucet to Anders Markvardsen

comment:17 Changed 9 years ago by Anders Markvardsen

  • Status changed from verifying to closed

comment:18 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 2852

Note: See TracTickets for help on using tickets.