Skip to content
Snippets Groups Projects
Commit 38b40d67 authored by Savici, Andrei T.'s avatar Savici, Andrei T.
Browse files

Change default property value for first 3 dimensions

parent 78eee9d3
No related branches found
No related tags found
No related merge requests found
...@@ -152,8 +152,12 @@ void MDNorm::init() { ...@@ -152,8 +152,12 @@ void MDNorm::init() {
for (std::size_t i = 0; i < 6; i++) { for (std::size_t i = 0; i < 6; i++) {
std::string propName = "Dimension" + Strings::toString(i) + "Name"; std::string propName = "Dimension" + Strings::toString(i) + "Name";
std::string propBinning = "Dimension" + Strings::toString(i) + "Binning"; std::string propBinning = "Dimension" + Strings::toString(i) + "Binning";
std::string defaultName = "";
if (i < 3) {
defaultName = "QDimension" + Strings::toString(i);
}
declareProperty(Kernel::make_unique<PropertyWithValue<std::string>>( declareProperty(Kernel::make_unique<PropertyWithValue<std::string>>(
propName, "", Direction::Input), propName, defaultName, Direction::Input),
"Name for the " + Strings::toString(i) + "Name for the " + Strings::toString(i) +
"th dimension. Leave blank for NONE."); "th dimension. Leave blank for NONE.");
auto atMost3 = boost::make_shared<ArrayLengthValidator<double>>(0, 3); auto atMost3 = boost::make_shared<ArrayLengthValidator<double>>(0, 3);
......
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