Ticket #5140 (closed: fixed)

Opened 8 years ago

Last modified 5 years ago

Multiple output statements from print when run through interface via runPythonScript

Reported by: Martyn Gigg Owned by: Martyn Gigg
Priority: major Milestone: Release 2.1
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Peter Parker

Description

A single print seems to produce multiple outputs when used via mantidplot.runPythonScript

Change History

comment:1 Changed 8 years ago by Martyn Gigg

Disconnect signals after script has run. Refs #5140

Prevents multiple runs producing many more print statements than it apparently should.

Changeset: 6947741960f76335c2ade657deb277a9ad403dd9

comment:2 Changed 8 years ago by Martyn Gigg

Disconnect signals after script has run. Refs #5140

Prevents multiple runs producing many more print statements than it apparently should.

Changeset: 6947741960f76335c2ade657deb277a9ad403dd9

comment:3 Changed 8 years ago by Martyn Gigg

  • Status changed from new to accepted

comment:4 Changed 8 years ago by Martyn Gigg

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

comment:5 Changed 8 years ago by Peter Parker

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

comment:6 Changed 8 years ago by Peter Parker

  • Status changed from verifying to closed

Running the following now results in only one "test" being printed:

import mantidplot
mantidplot.runPythonScript(code="print 'test'", async=True)

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5986

Note: See TracTickets for help on using tickets.