Ticket #8674 (closed: fixed)

Opened 7 years ago

Last modified 5 years ago

Expose RectangularDetector methods to python

Reported by: Andrei Savici Owned by: Andrei Savici
Priority: major Milestone: Release 3.1
Component: Python Keywords:
Cc: Blocked By:
Blocking: Tester: Peter Peterson

Description

Expose some RectangularDetector methods to python

Change History

comment:1 Changed 7 years ago by Andrei Savici

  • Status changed from new to inprogress

Start exposing RectangularDetector to Python. Refs #8674

Changeset: 8a6f9fd411622a6b46cc538b2ea49d215ac34572

comment:2 Changed 7 years ago by Andrei Savici

Finish exporting RectangularDetector to Python. Refs #8674

Changeset: c32474be079f4a1f3071f0943a17d987eb8858d4

comment:3 Changed 7 years ago by Andrei Savici

Unit tests for RectangularDetectors in Python. Refs #8674

Changeset: 88d5924cc89bb5d6d6b708a6a3d99acfa0ef21d1

comment:4 Changed 7 years ago by Andrei Savici

To test:

  • load TOPAZ empty instrument in a workspace, say w
  • in the script interpreter, get the handle to one of the rectangular detectors,
    i=mtd['w'].getInstrument()[22]
    
    (bank 29)
  • there are very few options before to access the detector. Only getDistance, getFullName, getName, getPos, and type are available
  • with the new changes, many more options are available. You can do things like
i[5][5].getName()
i.idstart()
i.xsize()

comment:5 Changed 7 years ago by Andrei Savici

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

comment:6 Changed 7 years ago by Peter Peterson

  • Status changed from verify to verifying
  • Tester set to Peter Peterson

comment:7 Changed 7 years ago by Peter Peterson

  • Status changed from verifying to closed

Merge remote branch 'origin/feature/8674_RectangularDetector_Python'

Full changeset: 839fd8af0d1a6940c8dbcc9d94f4fbda49371cfc

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 9518

Note: See TracTickets for help on using tickets.