Skip to content

Commit

Permalink
refs #4201 fixing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
abuts committed Jan 8, 2012
1 parent 70c8042 commit 6b8b7ff
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Code/Mantid/Framework/MDAlgorithms/src/ConvertToMDEvents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,15 @@ ConvertToMDEvents::identifyTheAlg(API::MatrixWorkspace_const_sptr inWS,const std
}
TargWSDescription.Ei = getEi(this);
}
// event workspace currenlty can be in TOF units only
if(the_algID.find(this->SupportedWS[EventWSType])!=std::string::npos)
{
if(the_algID.find(this->ConvModes[ConvFromTOF])==std::string::npos){
convert_log.error()<<" event workspace: "<<inWS2D->name()<<" has to be in TOF units, but algorithm selector: "<<the_algID<<" suggests other units\n";
throw(std::invalid_argument(" Input event workspace has to be in TOF units"));
}
}

// set up the target workspace description;
TargWSDescription.n_dims = nDims;
TargWSDescription.emode = emode;
Expand Down

0 comments on commit 6b8b7ff

Please sign in to comment.