Ticket #7936 (closed: worksforme)

Opened 7 years ago

Last modified 5 years ago

Bug in script window

Reported by: Owen Arnold Owned by: Dan Nixon
Priority: critical Milestone: Release 3.3
Component: Python Keywords:
Cc: martyn.gigg@… Blocked By:
Blocking: Tester: Andrei Savici

Description

Line numbers for errors seem to come out wrong when you execute a selection. This is a note made by Martyn during the Python in Mantid training course 10/Sept/2013.

Change History

comment:1 Changed 7 years ago by Nick Draper

  • Status changed from new to assigned

Bulk move to assigned at the introduction of the triage step

comment:2 Changed 6 years ago by Dan Nixon

  • Owner changed from Anyone to Dan Nixon

comment:3 Changed 6 years ago by Dan Nixon

This seems to be fixed.

The following was a selection which stars on line 17 of a valid script:

d = Load("GEM38370_Focussed_Legacy..nxs")
print type(d)

Which gives the following error when the two lines were run as a selection:

ValueError: Invalid value for property Filename (list of str lists) "GEM38370_Focussed_Legacy..nxs": File "GEM38370_Focussed_Legacy..nxs" not found
  at line 17 in 'New script'
  caused by line 91 in '/home/dan/mantid-build/bin/mantid/simpleapi.py'

The error quotes line 17 which matches the line numbers in the script window.

comment:4 Changed 6 years ago by Dan Nixon

  • Status changed from assigned to verify
  • Resolution set to worksforme

comment:5 Changed 6 years ago by Peter Peterson

  • Milestone changed from Backlog to Release 3.3

Should be on the current release

comment:6 Changed 6 years ago by Andrei Savici

  • Status changed from verify to verifying
  • Tester set to Andrei Savici

comment:7 Changed 6 years ago by Andrei Savici

  • Status changed from verifying to closed

Works on Ubuntu 14.04, and in Windows (3.1.20140620.1228)

comment:8 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 8781

Note: See TracTickets for help on using tickets.