Skip to content

Commit

Permalink
Refs #8903 added EnabledWhenProperty
Browse files Browse the repository at this point in the history
  • Loading branch information
jmborr committed Feb 6, 2014
1 parent c0425ab commit e7ee061
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Code/Mantid/Framework/Algorithms/src/SassenaFFT.cpp
Expand Up @@ -27,6 +27,7 @@ Below are plots after application of SassenaFFT to <math>I(Q,t) = e^{-t^2/(2\sig
//----------------------------------------------------------------------
#include "MantidAlgorithms/SassenaFFT.h"
#include "MantidKernel/VisibleWhenProperty.h"
#include "MantidKernel/EnabledWhenProperty.h"
#include "MantidKernel/UnitFactory.h"
#include "MantidDataObjects/Workspace2D.h"
#include "MantidAPI/WorkspaceGroup.h"
Expand Down Expand Up @@ -72,7 +73,7 @@ void SassenaFFT::init()
this->declareProperty(new Kernel::PropertyWithValue<bool>("FFTonlyRealPart", false, Kernel::Direction::Input),"Do we FFT only the real part of I(Q,t)? (optional, default is False)");
this->declareProperty(new Kernel::PropertyWithValue<bool>("DetailedBalance", false, Kernel::Direction::Input),"Do we apply detailed balance condition? (optional, default is False)");
this->declareProperty("Temp",300.0,"Multiply structure factor by exp(E/(2*kT)");
this->setPropertySettings("Temp", new Kernel::VisibleWhenProperty("Detailed Balance", Kernel::IS_EQUAL_TO, "1"));
this->setPropertySettings("Temp", new Kernel::EnabledWhenProperty("DetailedBalance", Kernel::IS_EQUAL_TO, "1"));
}

/// Execute the algorithm
Expand Down

0 comments on commit e7ee061

Please sign in to comment.