Ticket #767 (closed: fixed)

Opened 11 years ago

Last modified 5 years ago

Allow user to set default data and work directories

Reported by: Nick Draper Owned by: Martyn Gigg
Priority: major Milestone: Iteration 19
Component: Keywords:
Cc: Blocked By:
Blocking: Tester:

Description

Allow the user to set default data and work directories. This should be editable in the MantidPlot UI, perhaps a new dialog of the File menu. The setting should be passed to the Framework manager where it should be read by the load/save algorithms for use when a path is not defined.

N
Yes – that’s correct
Sp

----------------------------------------------- 
Spencer Howells 
League of Gentleman Scientists 

_______________________

From: Draper, N (Nick) 
Sent: 22 July 2009 13:26
To: Howells, WS (Spencer)
Subject: RE: Directories/Folders

Let me check I’ve got this right,

The raw directory is where we should default to search for the original raw (or nexus) files.
The work directory is where we should save any file out that are generated by mantid.

Regards,
Nick Draper

From: Howells, WS (Spencer) 
Sent: 22 July 2009 13:14
To: Draper, N (Nick)
Subject: Directories/Folders

Nick
I’ve just shown Felix what I’ve done so far.
We discussed default directories & he suggested that the main menu of Mantid could have a setup to define the raw directory & what we call the work directory (for nxs files eg).
The GUIs then default to these values
Sp

----------------------------------------------- 
Spencer Howells 
League of Gentleman Scientists 

_______________________


Change History

comment:1 Changed 11 years ago by Nick Draper

  • Milestone changed from Iteration 18 to Iteration 19

Moved as part of iteration 18 end

comment:2 Changed 11 years ago by Nick Draper

  • Owner set to Martyn Gigg

this is important in several areas.

I suggest we allow a list of search paths to be given in the .properties files.

Then the code meeds to be updated to handle this.

Could this be done in the file validator?

comment:3 Changed 11 years ago by Martyn Gigg

(In [3061]) Added support for searching directories for a file. Implemented a FileProperty class that handles this for algorithm file properties. The algorithms don't use this yet. Also added ignore properties for the generated object files of the new Geometry directories. Re #767

comment:4 Changed 11 years ago by Martyn Gigg

(In [3062]) Fix for windows build. I'd forgotten the DLLExport...as usual. Re #767

comment:5 Changed 11 years ago by Martyn Gigg

(In [3071]) Added FilePropertyTest. Re #767

comment:6 Changed 11 years ago by Martyn Gigg

(In [3073]) Add default search directory to Mantid test properties. Re #767

comment:7 Changed 11 years ago by Martyn Gigg

(In [3076]) Updated algorithms that were using the FileValidator class alone to use the new FileProperty class. Re #767

comment:8 Changed 11 years ago by Martyn Gigg

(In [3083]) Fix for FileProperty so that it copes with loading file that may possible not exists. Re #767.

comment:9 Changed 11 years ago by Martyn Gigg

(In [3084]) Fix remaining tests. Re #767

comment:10 Changed 11 years ago by Martyn Gigg

(In [3085]) Fix remaining test. Re #767

comment:11 Changed 11 years ago by Russell Taylor

(In [3088]) My gcc wouldn't allow the extra comma found here. Re #767.

comment:12 Changed 11 years ago by Martyn Gigg

  • Status changed from new to closed
  • Resolution set to fixed

(In [3131]) Fix for file property so that it handles relative filenames that have no parent and no default save.directory. Closes #767

comment:13 Changed 5 years ago by Stuart Campbell

This ticket has been transferred to github issue 1615

Note: See TracTickets for help on using tickets.