Skip to content

Commit

Permalink
Re #7279. Improved documentation of SampleNumberDensity parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
peterfpeterson committed Jun 13, 2013
1 parent 31bc463 commit 82a4938
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ void AbsorptionCorrection::init()
declareProperty("ScatteringXSection", EMPTY_DBL(), mustBePositive,
"The (coherent + incoherent) scattering cross-section for the sample material in barns. Column 7 of a table generated from http://www.ncnr.nist.gov/resources/n-lengths/.");
declareProperty("SampleNumberDensity", EMPTY_DBL(), mustBePositive,
"The number density of the sample in number per cubic angstrom if not set with SetSampleMaterial");
"The number density of the sample in number of atoms per cubic angstrom if not set with SetSampleMaterial");

auto positiveInt = boost::make_shared<BoundedValidator<int64_t> >();
positiveInt->setLower(1);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void HRPDSlabCanAbsorption::init()
declareProperty("SampleScatteringXSection", EMPTY_DBL(), mustBePositive,
"The scattering cross-section (coherent + incoherent) for the sample material in barns if not set with SetSampleMaterial");
declareProperty("SampleNumberDensity", EMPTY_DBL(), mustBePositive,
"The number density of the sample in number per cubic angstrom if not set with SetSampleMaterial");
"The number density of the sample in number of atoms per cubic angstrom if not set with SetSampleMaterial");

std::vector<std::string> thicknesses(4);
thicknesses[0] = "0.2";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ void SphericalAbsorption::init()
declareProperty("ScatteringXSection", EMPTY_DBL(), mustBePositive,
"The (coherent + incoherent) scattering cross-section for the sample material in barns.");
declareProperty("SampleNumberDensity", EMPTY_DBL(), mustBePositive,
"TThe number density of the sample in number per cubic angstrom, if not set with SetSampleMaterial");
"TThe number density of the sample in number of atoms per cubic angstrom, if not set with SetSampleMaterial");
declareProperty("SphericalSampleRadius", EMPTY_DBL(), mustBePositive,
"The radius of the spherical sample in centimetres");

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ namespace DataHandling
declareProperty("ScatteringXSection", EMPTY_DBL(), mustBePositive,
"Optional: This scattering cross-section (coherent + incoherent) for the sample material in barns will be used instead of calculated");
declareProperty("SampleNumberDensity", EMPTY_DBL(), mustBePositive,
"Optional: This number density of the sample in number per cubic angstrom will be used instead of calculated");
"Optional: This number density of the sample in number of atoms per cubic angstrom will be used instead of calculated");

// Perform Group Associations.
std::string formulaGrp("By Formula or Atomic Number");
Expand Down

0 comments on commit 82a4938

Please sign in to comment.