Skip to content

Commit

Permalink
Refs #9445. Corrected calculation of deltaT
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wedel committed May 21, 2014
1 parent c7c8f28 commit 4e1011f
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -29,8 +29,7 @@ void PoldiSpectrumDomainFunction::initializeParametersFromWorkspace(Workspace2D_
initializeFromInstrument(adapter.detector(), adapter.chopper());

m_spectrum = boost::const_pointer_cast<const PoldiSourceSpectrum>(adapter.spectrum());
// TODO: this is always 0
m_deltaT = workspace2D->readX(0)[1] - workspace2D->readX(0)[1];
m_deltaT = workspace2D->readX(0)[1] - workspace2D->readX(0)[0];
}

void PoldiSpectrumDomainFunction::initializeFromInstrument(PoldiAbstractDetector_sptr detector, PoldiAbstractChopper_sptr chopper)
Expand Down

0 comments on commit 4e1011f

Please sign in to comment.