Skip to content

Commit

Permalink
Fixed the reported issue. Refs #7336.
Browse files Browse the repository at this point in the history
  • Loading branch information
wdzhou committed Jul 22, 2013
1 parent d44b1bf commit 1ad0b0d
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,9 @@ namespace WorkflowAlgorithms

declareProperty("LowResSpectrumOffset", -1, "Offset on spectrum ID of low resolution spectra from high resolution one. "
"If negative, then all the low resolution TOF will not be processed. Otherwise, low resolution TOF "
"will be stored in an additional set of spectra. ");
"will be stored in an additional set of spectra. "
"If offset is equal to 0, then the low resolution will have same spectrum IDs as the normal ones. "
"Otherwise, the low resolution spectra will have spectrum IDs offset from normal ones. ");

}

Expand Down Expand Up @@ -746,11 +748,12 @@ namespace WorkflowAlgorithms
}

// Rename spectrum number
if (offset > 0)
if (offset >= 1)
{
for (size_t i = 0; i < nspec2; ++i)
{
outws->getSpectrum(nspec1+i)->setSpectrumNo(maxspecid1+static_cast<specid_t>((i+1)+offset));
specid_t newspecid = maxspecid1+static_cast<specid_t>((i)+offset);
outws->getSpectrum(nspec1+i)->setSpectrumNo(newspecid);
// ISpectrum* spec = outws->getSpectrum(nspec1+i);
// if (spec)
// spec->setSpectrumNo(3);
Expand Down

0 comments on commit 1ad0b0d

Please sign in to comment.