Ticket #728 (closed: fixed)

Opened 11 years ago

Last modified 5 years ago

Python scripting: Remove reliance on strings and change optional parameter syntax

Reported by: Nick Draper Owned by: Martyn Gigg
Priority: critical Milestone: Iteration 18
Component: Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

Change PythonSimpleAPI to use the type of the parameter rather than forcing a string each time.

Allow uses to specifiy two further parameters for Dialog calls

  • enable="parameter1,parameter2" would enable the box for user input
  • disable="PArameter3,p4" would disable the box for user input (even if no value has been provided)

Change History

comment:1 Changed 11 years ago by Martyn Gigg

(In [2723]) Relaxed requirement for every property to be a string in the Python interface. Strings still work though. Re #728

comment:2 Changed 11 years ago by Martyn Gigg

(In [2737]) Added two more arguments, enable and disable, to the Dialog API in Python. These can be used to list the parameters whose controls should be either enabled or disabled. Also added a help button that links to the mantidproject wiki page for each algorithm. Re #728

comment:3 Changed 11 years ago by Martyn Gigg

  • Status changed from new to closed
  • Resolution set to fixed

comment:4 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1576

Note: See TracTickets for help on using tickets.