Skip to content

Commit

Permalink
refs #7664. Changes to the algorithms.
Browse files Browse the repository at this point in the history
Give better logging. Especially useful if someone wants to run HasUB via MantidPlot.
  • Loading branch information
OwenArnold committed Aug 22, 2013
1 parent 0066f8c commit adc211a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Code/Mantid/Framework/Crystal/src/ClearUB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ namespace Mantid
Sample& sampleObject = experimentInfo->mutableSample();
if (!sampleObject.hasOrientedLattice())
{
this->g_log.notice("Workspace has no oriented lattice to clear.");
this->g_log.notice("Experiment Info has no oriented lattice.");
}
else
{
this->g_log.notice("Experiment Info has an oriented lattice.");
// Only actually clear the orientedlattice if this is NOT a dry run.
if (!dryRun)
{
Expand Down
4 changes: 2 additions & 2 deletions Code/Mantid/Framework/Crystal/src/HasUB.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ namespace Crystal
*/
void HasUB::exec()
{
Workspace_sptr ws = getProperty("Workspace");
Workspace_sptr ws = this->getProperty("Workspace");
bool hasUB = ClearUB::doExecute(ws.get(), true /*DryRun*/);
setProperty("HasUB", hasUB);
this->setProperty("HasUB", hasUB);
}


Expand Down

0 comments on commit adc211a

Please sign in to comment.