Skip to content
Snippets Groups Projects
Commit 27986b74 authored by Anton Piccardo-Selg's avatar Anton Piccardo-Selg
Browse files

Refs #15242 Fix spelling of default save directory

parent 9e47fc0d
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,7 @@ a contrived example will be created.
ws = SofQW(ws, QAxisBinning=[0.2,0.2,3], EMode="Direct", EFixed=3.0)
print "Workspace size = (", ws.getNumberHistograms(), ",", ws.blocksize(), ")"
import os
savefile = os.path.join(config["default.savedirectory"], "CNCS_7860_sqw.grp")
savefile = os.path.join(config["defaultsave.directory"], "CNCS_7860_sqw.grp")
SaveDaveGrp(ws, Filename=savefile)
print "File created:", os.path.exists(savefile)
ifile = open(savefile, 'r')
......
......@@ -29,7 +29,7 @@ Usage
ws = CreateMDHistoWorkspace(SignalInput='1,2,3,4,5,6,7,8,9', ErrorInput='1,1,1,1,1,1,1,1,1', Dimensionality='2',
Extents='-1,1,-1,1', NumberOfBins='3,3', Names='A,B', Units='U,T')
import os
savefile = os.path.join(config["default.savedirectory"], "mdhws.nxs")
savefile = os.path.join(config["defaultsave.directory"], "mdhws.nxs")
SaveMD(ws, Filename=savefile, Version=1)
print "File created:", os.path.exists(savefile)
......
......@@ -29,7 +29,7 @@ Usage
ws = CreateMDHistoWorkspace(SignalInput='1,2,3,4,5,6,7,8,9', ErrorInput='1,1,1,1,1,1,1,1,1', Dimensionality='2',
Extents='-1,1,-1,1', NumberOfBins='3,3', Names='A,B', Units='U,T')
import os
savefile = os.path.join(config["default.savedirectory"], "mdhws.nxs")
savefile = os.path.join(config["defaultsave.directory"], "mdhws.nxs")
SaveMD(ws, Filename=savefile)
print "File created:", os.path.exists(savefile)
......
......@@ -37,7 +37,7 @@ Usage
# Create a workspace with a single bank and 9x9 pixels.
ws = CreateSampleWorkspace(NumBanks=1, BankPixelWidth=9)
import os
group_file = os.path.join(config["default.savedirectory"], "mygroup.xml")
group_file = os.path.join(config["defaultsave.directory"], "mygroup.xml")
# Want to get nine groups of 3x3
SpatialGrouping(ws, group_file, SearchDistance=10)
print "File created:", os.path.exists(group_file)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment