Ticket #8690 (assigned)

Opened 7 years ago

Last modified 5 years ago

Improve LoadDialog created from Python when file not found

Reported by: Peter Parker Owned by: Nick Draper
Priority: trivial Milestone: Backlog
Component: GUI Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

We had some feedback in the recent Mantid Training Course whereby it was suggested that LoadDialogs should be more explicit when informing the user that a file was not found. Consider the following code which is needed in the solution to one of the exercises:

LoadDialog(
  "LOQ48097",
  OutputWorkspace="small_angle",
  LoadMonitors="Separate",
  Enable="Filename,SpectrumList",
  Disable="SpectrumMin,SpectrumMax")

If the default "LOQ48097" run is not on a user's search path then the dialog will not show any of the disabled/enabled fields as was the script-writers intention, and instead the script-user is presented with only the Filename and OutputWorkspaces fields with the standard Mantid red asterisk beside them.

My personal opinion is that the current functionality is fine, albeit slightly unintuitive for new users who may not spot the asterisks and are expecting a different-looking dialog box. Perhaps the script-writer could guard against this if they wish by doing their own FileFinder check to make sure the default run is there before opening the dialog box?

Change History

comment:1 Changed 7 years ago by Peter Parker

  • Owner set to Nick Draper

Nick, this is obviously a low priority ticket, but I've set you as the owner to solicit any comments you might have, and so that you can either set the ticket as "Wont Fix" or assign it elsewhere as you see fit.

comment:2 Changed 7 years ago by Nick Draper

  • Status changed from new to assigned

bulk move to assigned at the into of the triage step

comment:3 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 9534

Note: See TracTickets for help on using tickets.