Skip to content

Commit

Permalink
Improve file name messages re #5414
Browse files Browse the repository at this point in the history
Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
  • Loading branch information
KarlPalmen committed Oct 30, 2012
1 parent bd41842 commit 88e11fe
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,11 @@ def CalibrateMerlin( RunNumber, UsePeakFile=False ):

# == Get the calibration and put results into calibration table ==
# also put peaks into PeakFile
saveDirectory = config['defaultsave.directory']
peakFileName = "TubeCalibDemoMerlin_Peaks.txt"
if(not UsePeakFile):
getCalibration( CalibInstWS, thisTubeSet, calibrationTable, fitPar, iTube, ExcludeShortTubes=ActiveLength, PeakFile=peakFileName )
saveDirectory = config['defaultsave.directory']
fullPeakFileName = os.path.join(saveDirectory, peakFileName)
print " Put slit peaks into file",fullPeakFileName
print " Put slit peaks into file",peakFileName, "in save directory",saveDirectory,"."
else:
getCalibrationFromPeakFile( CalibInstWS, calibrationTable, iTube, peakFileName )

Expand All @@ -87,7 +86,7 @@ def CalibrateMerlin( RunNumber, UsePeakFile=False ):

# == Save workspace ==
SaveNexusProcessed( CalibInstWS, 'TubeCalibDemoMerlinResult.nxs',"Result of Running TubeCalibDemoMerlin_Adjustable.py")
print "saved calibrated workspace (CalibInstWS) into Nexus file TubeCalibDemoMerlinResult.nxs"
print "saved calibrated workspace (CalibInstWS) into Nexus file TubeCalibDemoMerlinResult.nxs in save directory",saveDirectory,"."

# ==== End of CalibrateMerlin() ====
# INITIALLY EXECUTE THE CODE FROM THE BEGINNING TO HERE, THEN EACH OF THE TWO CALLS BELOW IN ORDER SEPARATELY
Expand Down

0 comments on commit 88e11fe

Please sign in to comment.