@@ -215,9 +215,7 @@ void AlignAndFocusPowder::init() {
215
215
" Multiply each spectrum by "
216
216
" sin(theta) where theta is "
217
217
" half of the Bragg angle" );
218
- declareProperty (PropertyNames::UNWRAP_REF, 0 .,
219
- " Reference total flight path for frame "
220
- " unwrapping. Zero skips the correction" );
218
+ declareProperty (PropertyNames::UNWRAP_REF, 0 ., " This property is deprecated (since v6.13)." );
221
219
declareProperty (PropertyNames::LOWRES_REF, 0 ., " Reference DIFC for resolution removal. Zero skips the correction" );
222
220
declareProperty (" CropWavelengthMin" , 0 ., " Crop the data at this minimum wavelength. Overrides LowResRef." );
223
221
mapPropertyName (PropertyNames::WL_MIN, " wavelength_min" );
@@ -294,6 +292,11 @@ std::map<std::string, std::string> AlignAndFocusPowder::validateInputs() {
294
292
" Must have same number of values as " + PropertyNames::RESONANCE_LOWER_LIMITS;
295
293
}
296
294
295
+ // Deprecated properties
296
+ if (!isDefault (PropertyNames::UNWRAP_REF)) {
297
+ g_log.error (" AlignAndFocusPowder property UnwrapRef is deprecated since 2025-03-24." );
298
+ }
299
+
297
300
return result;
298
301
}
299
302
@@ -378,7 +381,6 @@ void AlignAndFocusPowder::exec() {
378
381
auto dmin = getVecPropertyFromPmOrSelf (PropertyNames::D_MINS, m_dmins);
379
382
auto dmax = getVecPropertyFromPmOrSelf (PropertyNames::D_MAXS, m_dmaxs);
380
383
this ->getVecPropertyFromPmOrSelf (PropertyNames::RAGGED_DELTA, m_delta_ragged);
381
- LRef = getProperty (PropertyNames::UNWRAP_REF);
382
384
DIFCref = getProperty (PropertyNames::LOWRES_REF);
383
385
const bool applyLorentz = getProperty (PropertyNames::LORENTZ);
384
386
minwl = getProperty (PropertyNames::WL_MIN);
@@ -491,7 +493,7 @@ void AlignAndFocusPowder::exec() {
491
493
}
492
494
493
495
// set up a progress bar with the "correct" number of steps
494
- m_progress = std::make_unique<Progress>(this , 0 ., 1 ., 22 );
496
+ m_progress = std::make_unique<Progress>(this , 0 ., 1 ., 21 );
495
497
496
498
if (m_maskWS) {
497
499
g_log.information () << " running MaskDetectors started at " << Types::Core::DateAndTime::getCurrentTime () << " \n " ;
@@ -651,26 +653,6 @@ void AlignAndFocusPowder::exec() {
651
653
m_progress->report ();
652
654
653
655
// Beyond this point, low resolution TOF workspace is considered.
654
- if (LRef > 0 .) {
655
- // this algorithm was originally created for POWGEN before issues in the DAS were fixed
656
- // it is not used in any current reduction and remains for legacy data processing
657
- m_outputW = convertUnits (m_outputW, " TOF" );
658
-
659
- g_log.information () << " running UnwrapSNS(LRef=" << LRef << " ,Tmin=" << tmin << " ,Tmax=" << tmax << " ) started at "
660
- << Types::Core::DateAndTime::getCurrentTime () << " \n " ;
661
- API::IAlgorithm_sptr removeAlg = createChildAlgorithm (" UnwrapSNS" );
662
- removeAlg->setProperty (" InputWorkspace" , m_outputW);
663
- removeAlg->setProperty (" OutputWorkspace" , m_outputW);
664
- removeAlg->setProperty (" LRef" , LRef);
665
- if (tmin > 0 .)
666
- removeAlg->setProperty (" Tmin" , tmin);
667
- if (tmax > tmin)
668
- removeAlg->setProperty (" Tmax" , tmax);
669
- removeAlg->executeAsChildAlg ();
670
- m_outputW = removeAlg->getProperty (" OutputWorkspace" );
671
- }
672
- m_progress->report ();
673
-
674
656
if (minwl > 0 . || (!isEmpty (maxwl))) { // just crop the workspace
675
657
// turn off the low res stuff
676
658
m_processLowResTOF = false ;
@@ -735,7 +717,7 @@ void AlignAndFocusPowder::exec() {
735
717
m_progress->report ();
736
718
737
719
// Convert units
738
- if (LRef > 0 . || minwl > 0 . || DIFCref > 0 . || (!isEmpty (maxwl))) {
720
+ if (minwl > 0 . || DIFCref > 0 . || (!isEmpty (maxwl))) {
739
721
m_outputW = convertUnits (m_outputW, " dSpacing" );
740
722
if (m_processLowResTOF)
741
723
m_lowResW = convertUnits (m_lowResW, " dSpacing" );
0 commit comments