From 606026285fb2e665ee1a87346ba87c5eae745589 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Wed, 21 Apr 2021 15:03:06 +0200 Subject: [PATCH] throw -> ASSERT --- Core/Scan/UnitConverter1D.cpp | 4 +--- auto/Wrap/doxygenDevice.i | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Core/Scan/UnitConverter1D.cpp b/Core/Scan/UnitConverter1D.cpp index 15109ffadac..15b0292eef0 100644 --- a/Core/Scan/UnitConverter1D.cpp +++ b/Core/Scan/UnitConverter1D.cpp @@ -97,9 +97,7 @@ std::unique_ptr<IAxis> UnitConverter1D::createConvertedAxis(size_t i_axis, Axes: std::unique_ptr<OutputData<double>> UnitConverter1D::createConvertedData(const OutputData<double>& data, Axes::Units units) const { - if (data.rank() != 1) - throw std::runtime_error("Error in UnitConverter1D::createConvertedData: unexpected " - "dimensions of the input data"); + ASSERT(data.rank() == 1); std::unique_ptr<OutputData<double>> result(new OutputData<double>); auto q_axis = createConvertedAxis(0, units); diff --git a/auto/Wrap/doxygenDevice.i b/auto/Wrap/doxygenDevice.i index f2d1deabfe3..b42cb66fbca 100644 --- a/auto/Wrap/doxygenDevice.i +++ b/auto/Wrap/doxygenDevice.i @@ -2567,7 +2567,7 @@ Returns axis coordinates as a numpy array. With no parameters given returns coor // File: classSimulationRoiArea.xml %feature("docstring") SimulationRoiArea " -Holds iteration logic over active detector channels in the presence of ROI. On the contrary to SimulationArea class, iterates also over masked areas. +Holds iteration logic over active detector channels in the presence of ROI. In contrast to class SimulationArea, iterates also over masked areas. C++ includes: SimulationArea.h "; -- GitLab