Skip to content

Commit

Permalink
Added 2 more algorithm properties. Refs #8472.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Nov 18, 2013
1 parent 404e7be commit 7a38ac1
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions Code/Mantid/Framework/CurveFitting/src/ProcessBackground.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ DECLARE_ALGORITHM(ProcessBackground)
std::vector<std::string> bkgdtype;
bkgdtype.push_back("Polynomial");
bkgdtype.push_back("Chebyshev");
bkgdtype.push_back("FullprofPolynomial");
auto bkgdvalidator = boost::make_shared<Kernel::StringListValidator>(bkgdtype);
declareProperty("BackgroundType", "Polynomial", bkgdvalidator,
"Type of the background. Options include Polynomial and Chebyshev.");
Expand Down Expand Up @@ -177,6 +178,21 @@ DECLARE_ALGORITHM(ProcessBackground)
setPropertySettings("UserBackgroundWorkspace",
new VisibleWhenProperty("Options", IS_EQUAL_TO, "SelectBackgroundPoints"));

// Optional output workspace
// TODO - Implement more upon this option!
declareProperty(new WorkspaceProperty<Workspace2D>("OutputBackgroundParameterTable", "", Direction::Output,
PropertyMode::Optional),
"Output .... ... .");
setPropertySettings("OutputBackgroundParameterTable",
new VisibleWhenProperty("Options", IS_EQUAL_TO, "SelectBackgroundPoints"));

// TODO - Develop from this new option
// Output background type.
declareProperty("OutputBackgroundType", "Polynomial", bkgdvalidator,
"Type of background to fit with selected ... .");
setPropertySettings("OutputBackgroundType",
new VisibleWhenProperty("Options", IS_EQUAL_TO, "SelectBackgroundPoints"));


// Peak table workspac for "RemovePeaks"
declareProperty(new WorkspaceProperty<TableWorkspace>("BraggPeakTableWorkspace", "", Direction::Input,
Expand Down

0 comments on commit 7a38ac1

Please sign in to comment.