Ticket #3425 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

MantidPlot: Allow objects to connect to PeakPickerTool range changes

Reported by: Mathieu Doucet Owned by: Mathieu Doucet
Priority: major Milestone: Iteration 30
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Robert Whitley

Description

Letting an object connect to a PeakPickerTool signal giving selected range updates will be necessary for reflectometry. At the moment, PeakPickerTool only talks to the fit browser.

Design note: it would be very nice to separate the PeakPickerTool from the fit browser so that it can be re-used independently.

Change History

comment:1 Changed 9 years ago by Mathieu Doucet

In [13495]:

Expose selectMultiPeak to python. Re #3425

comment:2 Changed 9 years ago by Mathieu Doucet

  • Owner set to Mathieu Doucet
  • Status changed from new to accepted

To test, run the following script in ManditPlot. The updated range should be printed in the Scripting Console as you drag the vertical delimiters.

from PyQt4 import QtGui, QtCore
import time

def print_range(xmin, xmax):
	print xmin, xmax

CreateWorkspace(DataX=[1,2,3,4],DataY=[1,1,1],DataE=[1,1,1],NSpec=1,OutputWorkspace="ws")
qti.app.connect(qti.app.mantidUI, QtCore.SIGNAL("x_range_update(double,double)"), print_range)
g = qti.app.mantidUI.pyPlotSpectraList(["ws"],[0],True)
qti.app.selectMultiPeak()

comment:3 Changed 9 years ago by Mathieu Doucet

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

comment:4 Changed 9 years ago by Robert Whitley

  • Status changed from verify to verifying
  • Tester set to Robert Whitley

comment:5 Changed 9 years ago by Robert Whitley

This doesn't seem to update the scripting console but updates the values in the fit browser. Is this what's supposed to happen?

comment:6 Changed 9 years ago by Robert Whitley

  • Status changed from verifying to closed

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 4272

Note: See TracTickets for help on using tickets.