From 23bdefe89cb59b73dfc4558ef6c8f62ea8fdfca6 Mon Sep 17 00:00:00 2001 From: Tammo Jan Dijkema <dijkema@astron.nl> Date: Mon, 12 Oct 2015 08:50:49 +0000 Subject: [PATCH] Task #8617: simplify call to Slice(r) --- CEP/Calibration/BBSKernel/src/MeasurementAIPS.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/CEP/Calibration/BBSKernel/src/MeasurementAIPS.cc b/CEP/Calibration/BBSKernel/src/MeasurementAIPS.cc index 65109874380..75615f92f09 100644 --- a/CEP/Calibration/BBSKernel/src/MeasurementAIPS.cc +++ b/CEP/Calibration/BBSKernel/src/MeasurementAIPS.cc @@ -723,10 +723,8 @@ void MeasurementAIPS::initDimensions() // Check that channels have no gaps and are evenly spaced // (this is not prevented by the MS 2.0 standard). if (frequency.nelements()>1) { - Vector<Double> upFreq = frequency(Slicer(IPosition(1,1), - IPosition(1,frequency.nelements()-1))); - Vector<Double> lowFreq = frequency(Slicer(IPosition(1,0), - IPosition(1,frequency.nelements()-1))); + Vector<Double> upFreq = frequency(Slice(1,frequency.nelements()-1)); + Vector<Double> lowFreq = frequency(Slice(0,frequency.nelements()-1)); Double freqstep0=upFreq(0)-lowFreq(0); ASSERTSTR(allEQ(upFreq-lowFreq,freqstep0), "Channels are not evenly spaced. This is not supported."); -- GitLab