Ticket #1304 (closed: fixed)

Opened 10 years ago

Last modified 5 years ago

Add C++ and python methods to list the parameters on an component

Reported by: Nick Draper Owned by: Martyn Gigg
Priority: major Milestone: Iteration 25
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Anders Markvardsen

Description

The summary says it all

Change History

comment:1 Changed 10 years ago by Nick Draper

  • Status changed from new to assigned
  • Owner set to Martyn Gigg

comment:2 Changed 10 years ago by Martyn Gigg

  • Status changed from assigned to accepted

comment:3 Changed 10 years ago by Martyn Gigg

(In [6079]) Added methods to retrieve the parameters from components and check for a given parameter. Exposed these to Python. Re #1304

comment:4 Changed 10 years ago by Martyn Gigg

(In [6081]) Tidied up stl sequence printing in Python. Re #1304

comment:5 Changed 10 years ago by Martyn Gigg

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

Parameter access is ugly in Python. New ticket, #1601, created to remedy this.

comment:6 Changed 10 years ago by Michael Whitty

  • Status changed from verify to verifying
  • Component set to Mantid
  • Tester set to Michael Whitty

comment:7 Changed 10 years ago by Michael Whitty

  • Status changed from verifying to closed

verified in r [7139]

comment:8 Changed 10 years ago by Nick Draper

  • Status changed from closed to reopened
  • Resolution fixed deleted

This script does not seem to work

a=mtd["LOQ48097"]
d=a.getDetector(7)
print d.getParameterNames()

comment:9 Changed 10 years ago by Martyn Gigg

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

(In [7173]) Include the correct base classes for parametrized detectors within the Python API. Fixes #1304

comment:10 Changed 10 years ago by Anders Markvardsen

  • Status changed from verify to verifying
  • Tester changed from Michael Whitty to Anders Markvardsen

comment:11 Changed 10 years ago by Anders Markvardsen

  • Status changed from verifying to closed

C++ is used in a number of unit tests and tested that parameters could be obtained from python on a LOQ, HRPD and MAP workspaces.

comment:12 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 2151

Note: See TracTickets for help on using tickets.