diff --git a/Device/Beam/IFootprintFactor.cpp b/Device/Beam/IFootprintFactor.cpp index 54767e7f4033c609ff1cf9006146dbfcbdf03e63..495849330b454a4de7dab2af2bcfee21d3a8da15 100644 --- a/Device/Beam/IFootprintFactor.cpp +++ b/Device/Beam/IFootprintFactor.cpp @@ -28,11 +28,3 @@ IFootprintFactor::IFootprintFactor(const NodeMeta& meta, const std::vector<doubl } IFootprintFactor::~IFootprintFactor() = default; - -void IFootprintFactor::setWidthRatio(double width_ratio) -{ - if (width_ratio < 0.0) - throw std::runtime_error( - "Error in IFootprintFactor::setWidthRatio: width ratio is negative"); - m_P[0] = width_ratio; -} diff --git a/Device/Beam/IFootprintFactor.h b/Device/Beam/IFootprintFactor.h index 7c72a19198de1e751081bae84cbb1f752b51f4b2..abfae6a3715a5b93cdce2599f8cfeb8baf1559bc 100644 --- a/Device/Beam/IFootprintFactor.h +++ b/Device/Beam/IFootprintFactor.h @@ -32,7 +32,6 @@ public: virtual IFootprintFactor* clone() const = 0; - void setWidthRatio(double width_ratio); double widthRatio() const { return m_width_ratio; } //! Calculate footprint correction coefficient from the beam incident angle _alpha_. diff --git a/auto/Wrap/doxygenDevice.i b/auto/Wrap/doxygenDevice.i index ca56d1207807221dfe1ce597a611fc7d9bd8c9b0..93d347474026a5ade2a21be2b0248ef6922124ff 100644 --- a/auto/Wrap/doxygenDevice.i +++ b/auto/Wrap/doxygenDevice.i @@ -1219,9 +1219,6 @@ C++ includes: IFootprintFactor.h %feature("docstring") IFootprintFactor::clone "virtual IFootprintFactor* IFootprintFactor::clone() const =0 "; -%feature("docstring") IFootprintFactor::setWidthRatio "void IFootprintFactor::setWidthRatio(double width_ratio) -"; - %feature("docstring") IFootprintFactor::widthRatio "double IFootprintFactor::widthRatio() const "; diff --git a/auto/Wrap/libBornAgainDevice.py b/auto/Wrap/libBornAgainDevice.py index 0f1754ed33dbec674122aecf19967639f52d46c2..30d4a3c961ecb93ddfac06f416e1676153582113 100644 --- a/auto/Wrap/libBornAgainDevice.py +++ b/auto/Wrap/libBornAgainDevice.py @@ -2907,14 +2907,6 @@ class IFootprintFactor(libBornAgainBase.ICloneable, libBornAgainParam.INode): """ return _libBornAgainDevice.IFootprintFactor_clone(self) - def setWidthRatio(self, width_ratio): - r""" - setWidthRatio(IFootprintFactor self, double width_ratio) - void IFootprintFactor::setWidthRatio(double width_ratio) - - """ - return _libBornAgainDevice.IFootprintFactor_setWidthRatio(self, width_ratio) - def widthRatio(self): r""" widthRatio(IFootprintFactor self) -> double diff --git a/auto/Wrap/libBornAgainDevice_wrap.cpp b/auto/Wrap/libBornAgainDevice_wrap.cpp index 3e0c92790d10fa90866c2aed03aa6fba30e779f2..b8356c617f670a83fd854296ecbc3798a1337601 100644 --- a/auto/Wrap/libBornAgainDevice_wrap.cpp +++ b/auto/Wrap/libBornAgainDevice_wrap.cpp @@ -31686,35 +31686,6 @@ fail: } -SWIGINTERN PyObject *_wrap_IFootprintFactor_setWidthRatio(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { - PyObject *resultobj = 0; - IFootprintFactor *arg1 = (IFootprintFactor *) 0 ; - double arg2 ; - void *argp1 = 0 ; - int res1 = 0 ; - double val2 ; - int ecode2 = 0 ; - PyObject *swig_obj[2] ; - - if (!SWIG_Python_UnpackTuple(args, "IFootprintFactor_setWidthRatio", 2, 2, swig_obj)) SWIG_fail; - res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IFootprintFactor, 0 | 0 ); - if (!SWIG_IsOK(res1)) { - SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "IFootprintFactor_setWidthRatio" "', argument " "1"" of type '" "IFootprintFactor *""'"); - } - arg1 = reinterpret_cast< IFootprintFactor * >(argp1); - ecode2 = SWIG_AsVal_double(swig_obj[1], &val2); - if (!SWIG_IsOK(ecode2)) { - SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "IFootprintFactor_setWidthRatio" "', argument " "2"" of type '" "double""'"); - } - arg2 = static_cast< double >(val2); - (arg1)->setWidthRatio(arg2); - resultobj = SWIG_Py_Void(); - return resultobj; -fail: - return NULL; -} - - SWIGINTERN PyObject *_wrap_IFootprintFactor_widthRatio(PyObject *SWIGUNUSEDPARM(self), PyObject *args) { PyObject *resultobj = 0; IFootprintFactor *arg1 = (IFootprintFactor *) 0 ; @@ -45625,11 +45596,6 @@ static PyMethodDef SwigMethods[] = { "virtual IFootprintFactor* IFootprintFactor::clone() const =0\n" "\n" ""}, - { "IFootprintFactor_setWidthRatio", _wrap_IFootprintFactor_setWidthRatio, METH_VARARGS, "\n" - "IFootprintFactor_setWidthRatio(IFootprintFactor self, double width_ratio)\n" - "void IFootprintFactor::setWidthRatio(double width_ratio)\n" - "\n" - ""}, { "IFootprintFactor_widthRatio", _wrap_IFootprintFactor_widthRatio, METH_O, "\n" "IFootprintFactor_widthRatio(IFootprintFactor self) -> double\n" "double IFootprintFactor::widthRatio() const\n"