Ticket #4530 (closed: fixed)

Opened 9 years ago

Last modified 5 years ago

Generate Python history script now shows error dialog

Reported by: Peter Parker Owned by: Peter Parker
Priority: critical Milestone: Release 2.0
Component: Mantid Keywords:
Cc: Blocked By:
Blocking: Tester: Robert Whitley

Description

To reproduce:

  • Load a tosca file, for example TSC10685.raw. (This may well produce an error for other files, too.)
  • Right-click the workspace in Mantid to show the history dialog.
  • Try to use the "Generate Script" button.

The user will be presented with an error dialog, and the following will output to the log:

Error in execution of algorithm GeneratePythonScript:
Unknown property search object LoadLogFiles

Change History

comment:1 Changed 9 years ago by Peter Parker

This seems to be a problem with Load in general, and not being able to call getPointerToProperty() on the algorithm, asking for any non-default properties of the child algorithm.

Will implement a fix to make sure this specific case is catered for within the GeneratePythonScript class.

comment:2 Changed 9 years ago by Peter Parker

  • Status changed from new to accepted

comment:3 Changed 9 years ago by Peter Parker

Refs #4530. Fix for GeneratePythonScript.

Handles case where non-default properties of the child algorithm to Load are unable to be found via getPointerToProperty.

Changeset: 9ac63a47158c058967fc768184eddf59e747e228

comment:4 Changed 9 years ago by Peter Parker

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

comment:5 Changed 9 years ago by Robert Whitley

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

comment:6 Changed 9 years ago by Robert Whitley

  • Status changed from verifying to closed

Both writing the history to a file and to the clipboard worked using the 'Generate Script' button.

comment:7 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 5377

Note: See TracTickets for help on using tickets.