Skip to content

Commit

Permalink
refs #8752. Kill warning and proper fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
OwenArnold committed Jan 30, 2014
1 parent 265a8d7 commit 970c80b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Code/Mantid/Framework/Algorithms/src/ReflectometryWorkflowBase.cpp
Expand Up @@ -234,8 +234,18 @@ namespace Mantid
// Verify that all the required inputs for the second transmission run are now given.
if (isPropertyDefault("FirstTransmissionRun"))
{
throw std::invalid_argument(
"A SecondTransmissionRun is only valid if a FirstTransmissionRun is provided.");
if (firstTransmissionInWavelength)
{
this->g_log.warning(
"The first transmission run is in wavelength so is assumed to be correctly stitched in wavelength. "
"The second transmission run and associated inputs will be ignored."
"Run CreateTransmissionWorkspace to create a transmission workspace from TOF runs.");
}
else
{
throw std::invalid_argument(
"A SecondTransmissionRun is only valid if a FirstTransmissionRun is provided.");
}
}
else
{
Expand Down

0 comments on commit 970c80b

Please sign in to comment.