Skip to content

Commit

Permalink
Resolved conflict. Refs #6968.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Jun 14, 2013
2 parents 349cf77 + c62da56 commit f682a98
Showing 1 changed file with 32 additions and 3 deletions.
35 changes: 32 additions & 3 deletions Code/Mantid/Framework/Algorithms/src/SaveGSASInstrumentFile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,36 @@ namespace Algorithms
setOptionalMessage("");
}

//----------------------------------------------------------------------------------------------
void SaveGSASInstrumentFile::init()
{
/**
""" Set Property
"""
instruments = ["PG3", "NOM", "VULCAN", "SNAP"]
frequencies = ["10", "30", "60"]
self.declareProperty("Instrument", "PG3", Validator=ListValidator(instruments),
Description="SNS Instrument Name")
self.declareFileProperty("InputFile", "", FileAction.Load, [".irf", ".pcr"],
Description="Resolution (Fullprof, .irf) file")
self.declareProperty("IDLine", "", Description="ID Line in output GSAS instrument file")
self.declareProperty("Sample", "", Description="Sample information written to header (title)")
self.declareListProperty("Banks", [1], Validator=ArrayBoundedValidator(Lower=0),
Description="Banks to be written into output file")
self.declareProperty("Frequency", "60", Validator=ListValidator(frequencies),
Description="Frequency of the instrument file corresponds to")
self.declareProperty("L1", -1.0)
self.declareProperty("L2", -1.0,
Description="Distance from sample to detector. If 2Theta is given, this won't work. ")
self.declareProperty("2Theta", 1001.0,
Description="Angle of the detector bank. It is to calculate L2 with given Dtt1")
self.declareFileProperty("OutputFile", "", FileAction.Save, [".iparm", ".prm"],
Description="Output .iparm or .prm file")
*/
return;
}

//----------------------------------------------------------------------------------------------
void SaveGSASInstrumentFile::exec()
{
Expand Down Expand Up @@ -560,12 +590,11 @@ double calL2FromDtt1(double difc, double L1, double twotheta)
return l2;
}




/** Initialize constant library
*/
void initConstantLib()
{

}


0 comments on commit f682a98

Please sign in to comment.