Skip to content
Snippets Groups Projects
Commit e3b28d1a authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

IOFactory: tags + '2D'; + struct ImportSettings1D

parent df32d5f5
No related branches found
No related tags found
1 merge request!1648import 1d: provide 2-5 columns legacy importers; rm reactive importer
......@@ -164,9 +164,9 @@ IO::Filetype2D IO::filename2type2D(const std::string& filename)
std::string s = ::uncompressedExtension(filename);
if (s == ".int")
return bornagain;
return bornagain2D;
if (s == ".001")
return nicos;
return nicos2D;
if (s == ".tif" || s == ".tiff")
return tiff;
return csv2D;
......@@ -192,10 +192,10 @@ Datafield* IO::readData2D(const std::string& file_name, Filetype2D ftype)
std::stringstream s = ::file2stream(file_name);
if (ftype == bornagain)
if (ftype == bornagain2D)
return Util::RW::readBAInt(s);
if (ftype == nicos)
if (ftype == nicos2D)
return Util::RW::readNicos(s);
#ifdef BA_TIFF_SUPPORT
......
......@@ -22,7 +22,22 @@ class Datafield;
namespace IO {
enum Filetype1D { unknown1D, csv1D, bornagain1D, mft };
enum Filetype2D { unknown2D, csv2D, bornagain, tiff, nicos };
enum Filetype2D { unknown2D, csv2D, bornagain2D, tiff, nicos2D };
struct ImportSettings1D {
std::string headerPrefix; //!< prefix of header lines (usually a single character like "#")
std::string linesToSkip; //!< pattern denoting line to skip (i.e. '1,10-12,42')
std::string separator; //!< column separator
int col_Q; //!< column number of Q
int col_R; //!< column number of R
int col_dQ; //!< column number of delta Q, or -1
int col_sR; //!< column number of sigma R, or -1
int col_lambda; //!< column number of wavelength, or -1
// bool operator!=(const ImportSettings& other) const;
// QByteArray serialize() const;
// void deserialize(const QByteArray& data);
};
#ifndef SWIG
bool isCompressed(const std::string& name);
......
......@@ -34,7 +34,7 @@
namespace {
template<class T>
template <class T>
QString join_mapkeys(std::map<const QString, T> _map, const QString& _separator)
{
QString result;
......@@ -299,8 +299,8 @@ void RealDataSelectorWidget::importData2D()
{
static const std::map<const QString, IO::Filetype2D> filters2D{
{"TIFF (*.tif *.tiff *.tif.gz)", IO::tiff},
{"Nicos/SANSDRaw (*.001)", IO::nicos},
{"BornAgain (*.int.gz)", IO::bornagain},
{"Nicos/SANSDRaw (*.001)", IO::nicos2D},
{"BornAgain (*.int.gz)", IO::bornagain2D},
{"CSV (*.txt *.csv *.dat)", IO::csv2D},
{"All (*.*)", IO::unknown2D}};
......
......@@ -3001,12 +3001,33 @@ unknown2D = _libBornAgainDevice.unknown2D
csv2D = _libBornAgainDevice.csv2D
bornagain = _libBornAgainDevice.bornagain
bornagain2D = _libBornAgainDevice.bornagain2D
tiff = _libBornAgainDevice.tiff
nicos = _libBornAgainDevice.nicos
nicos2D = _libBornAgainDevice.nicos2D
class ImportSettings1D(object):
r"""Proxy of C++ IO::ImportSettings1D class."""
thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
__repr__ = _swig_repr
headerPrefix = property(_libBornAgainDevice.ImportSettings1D_headerPrefix_get, _libBornAgainDevice.ImportSettings1D_headerPrefix_set, doc=r"""headerPrefix : std::string""")
linesToSkip = property(_libBornAgainDevice.ImportSettings1D_linesToSkip_get, _libBornAgainDevice.ImportSettings1D_linesToSkip_set, doc=r"""linesToSkip : std::string""")
separator = property(_libBornAgainDevice.ImportSettings1D_separator_get, _libBornAgainDevice.ImportSettings1D_separator_set, doc=r"""separator : std::string""")
col_Q = property(_libBornAgainDevice.ImportSettings1D_col_Q_get, _libBornAgainDevice.ImportSettings1D_col_Q_set, doc=r"""col_Q : int""")
col_R = property(_libBornAgainDevice.ImportSettings1D_col_R_get, _libBornAgainDevice.ImportSettings1D_col_R_set, doc=r"""col_R : int""")
col_dQ = property(_libBornAgainDevice.ImportSettings1D_col_dQ_get, _libBornAgainDevice.ImportSettings1D_col_dQ_set, doc=r"""col_dQ : int""")
col_sR = property(_libBornAgainDevice.ImportSettings1D_col_sR_get, _libBornAgainDevice.ImportSettings1D_col_sR_set, doc=r"""col_sR : int""")
col_lambda = property(_libBornAgainDevice.ImportSettings1D_col_lambda_get, _libBornAgainDevice.ImportSettings1D_col_lambda_set, doc=r"""col_lambda : int""")
def __init__(self):
r"""__init__(ImportSettings1D self) -> ImportSettings1D"""
_libBornAgainDevice.ImportSettings1D_swiginit(self, _libBornAgainDevice.new_ImportSettings1D())
__swig_destroy__ = _libBornAgainDevice.delete_ImportSettings1D
# Register ImportSettings1D in _libBornAgainDevice:
_libBornAgainDevice.ImportSettings1D_swigregister(ImportSettings1D)
def readData1D(*args):
r"""readData1D(std::string const & file_name, IO::Filetype1D ftype=unknown1D) -> Datafield"""
......
......@@ -3402,82 +3402,83 @@ namespace Swig {
#define SWIGTYPE_p_IDetectorResolution swig_types[13]
#define SWIGTYPE_p_IFootprintFactor swig_types[14]
#define SWIGTYPE_p_INode swig_types[15]
#define SWIGTYPE_p_IPixel swig_types[16]
#define SWIGTYPE_p_IResolutionFunction2D swig_types[17]
#define SWIGTYPE_p_IShape2D swig_types[18]
#define SWIGTYPE_p_Line swig_types[19]
#define SWIGTYPE_p_MaskPattern swig_types[20]
#define SWIGTYPE_p_OffspecDetector swig_types[21]
#define SWIGTYPE_p_PolFilter swig_types[22]
#define SWIGTYPE_p_Polygon swig_types[23]
#define SWIGTYPE_p_PolygonPrivate swig_types[24]
#define SWIGTYPE_p_Rectangle swig_types[25]
#define SWIGTYPE_p_RectangularDetector swig_types[26]
#define SWIGTYPE_p_RectangularPixel swig_types[27]
#define SWIGTYPE_p_ResolutionFunction2DGaussian swig_types[28]
#define SWIGTYPE_p_Rotation3DT_double_t swig_types[29]
#define SWIGTYPE_p_Scale swig_types[30]
#define SWIGTYPE_p_SimulationResult swig_types[31]
#define SWIGTYPE_p_SphericalDetector swig_types[32]
#define SWIGTYPE_p_Vec3T_double_t swig_types[33]
#define SWIGTYPE_p_Vec3T_int_t swig_types[34]
#define SWIGTYPE_p_Vec3T_std__complexT_double_t_t swig_types[35]
#define SWIGTYPE_p_VerticalLine swig_types[36]
#define SWIGTYPE_p_allocator_type swig_types[37]
#define SWIGTYPE_p_char swig_types[38]
#define SWIGTYPE_p_const_iterator swig_types[39]
#define SWIGTYPE_p_corr_matrix_t swig_types[40]
#define SWIGTYPE_p_difference_type swig_types[41]
#define SWIGTYPE_p_first_type swig_types[42]
#define SWIGTYPE_p_int swig_types[43]
#define SWIGTYPE_p_iterator swig_types[44]
#define SWIGTYPE_p_key_type swig_types[45]
#define SWIGTYPE_p_long_long swig_types[46]
#define SWIGTYPE_p_mapped_type swig_types[47]
#define SWIGTYPE_p_p_PyObject swig_types[48]
#define SWIGTYPE_p_parameters_t swig_types[49]
#define SWIGTYPE_p_second_type swig_types[50]
#define SWIGTYPE_p_short swig_types[51]
#define SWIGTYPE_p_signed_char swig_types[52]
#define SWIGTYPE_p_size_type swig_types[53]
#define SWIGTYPE_p_std__allocatorT_Vec3T_double_t_t swig_types[54]
#define SWIGTYPE_p_std__allocatorT_double_t swig_types[55]
#define SWIGTYPE_p_std__allocatorT_int_t swig_types[56]
#define SWIGTYPE_p_std__allocatorT_std__complexT_double_t_t swig_types[57]
#define SWIGTYPE_p_std__allocatorT_std__pairT_double_double_t_t swig_types[58]
#define SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_double_t_t swig_types[59]
#define SWIGTYPE_p_std__allocatorT_std__string_t swig_types[60]
#define SWIGTYPE_p_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t swig_types[61]
#define SWIGTYPE_p_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t swig_types[62]
#define SWIGTYPE_p_std__allocatorT_unsigned_long_t swig_types[63]
#define SWIGTYPE_p_std__arrayT_std__shared_ptrT_Scale_t_2_t swig_types[64]
#define SWIGTYPE_p_std__complexT_double_t swig_types[65]
#define SWIGTYPE_p_std__functionT_void_fSimulationAreaIterator_const_RF_t swig_types[66]
#define SWIGTYPE_p_std__invalid_argument swig_types[67]
#define SWIGTYPE_p_std__lessT_std__string_t swig_types[68]
#define SWIGTYPE_p_std__mapT_std__string_double_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_double_t_t_t swig_types[69]
#define SWIGTYPE_p_std__pairT_double_double_t swig_types[70]
#define SWIGTYPE_p_std__vectorT_INode_const_p_std__allocatorT_INode_const_p_t_t swig_types[71]
#define SWIGTYPE_p_std__vectorT_ParaMeta_std__allocatorT_ParaMeta_t_t swig_types[72]
#define SWIGTYPE_p_std__vectorT_Scale_const_p_std__allocatorT_Scale_const_p_t_t swig_types[73]
#define SWIGTYPE_p_std__vectorT_Vec3T_double_t_std__allocatorT_Vec3T_double_t_t_t swig_types[74]
#define SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t swig_types[75]
#define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t swig_types[76]
#define SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t swig_types[77]
#define SWIGTYPE_p_std__vectorT_std__complexT_double_t_std__allocatorT_std__complexT_double_t_t_t swig_types[78]
#define SWIGTYPE_p_std__vectorT_std__pairT_double_double_t_std__allocatorT_std__pairT_double_double_t_t_t swig_types[79]
#define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t swig_types[80]
#define SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t swig_types[81]
#define SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t swig_types[82]
#define SWIGTYPE_p_std__vectorT_unsigned_long_std__allocatorT_unsigned_long_t_t swig_types[83]
#define SWIGTYPE_p_swig__SwigPyIterator swig_types[84]
#define SWIGTYPE_p_unsigned_char swig_types[85]
#define SWIGTYPE_p_unsigned_int swig_types[86]
#define SWIGTYPE_p_unsigned_long_long swig_types[87]
#define SWIGTYPE_p_unsigned_short swig_types[88]
#define SWIGTYPE_p_value_type swig_types[89]
static swig_type_info *swig_types[91];
static swig_module_info swig_module = {swig_types, 90, 0, 0, 0, 0};
#define SWIGTYPE_p_IO__ImportSettings1D swig_types[16]
#define SWIGTYPE_p_IPixel swig_types[17]
#define SWIGTYPE_p_IResolutionFunction2D swig_types[18]
#define SWIGTYPE_p_IShape2D swig_types[19]
#define SWIGTYPE_p_Line swig_types[20]
#define SWIGTYPE_p_MaskPattern swig_types[21]
#define SWIGTYPE_p_OffspecDetector swig_types[22]
#define SWIGTYPE_p_PolFilter swig_types[23]
#define SWIGTYPE_p_Polygon swig_types[24]
#define SWIGTYPE_p_PolygonPrivate swig_types[25]
#define SWIGTYPE_p_Rectangle swig_types[26]
#define SWIGTYPE_p_RectangularDetector swig_types[27]
#define SWIGTYPE_p_RectangularPixel swig_types[28]
#define SWIGTYPE_p_ResolutionFunction2DGaussian swig_types[29]
#define SWIGTYPE_p_Rotation3DT_double_t swig_types[30]
#define SWIGTYPE_p_Scale swig_types[31]
#define SWIGTYPE_p_SimulationResult swig_types[32]
#define SWIGTYPE_p_SphericalDetector swig_types[33]
#define SWIGTYPE_p_Vec3T_double_t swig_types[34]
#define SWIGTYPE_p_Vec3T_int_t swig_types[35]
#define SWIGTYPE_p_Vec3T_std__complexT_double_t_t swig_types[36]
#define SWIGTYPE_p_VerticalLine swig_types[37]
#define SWIGTYPE_p_allocator_type swig_types[38]
#define SWIGTYPE_p_char swig_types[39]
#define SWIGTYPE_p_const_iterator swig_types[40]
#define SWIGTYPE_p_corr_matrix_t swig_types[41]
#define SWIGTYPE_p_difference_type swig_types[42]
#define SWIGTYPE_p_first_type swig_types[43]
#define SWIGTYPE_p_int swig_types[44]
#define SWIGTYPE_p_iterator swig_types[45]
#define SWIGTYPE_p_key_type swig_types[46]
#define SWIGTYPE_p_long_long swig_types[47]
#define SWIGTYPE_p_mapped_type swig_types[48]
#define SWIGTYPE_p_p_PyObject swig_types[49]
#define SWIGTYPE_p_parameters_t swig_types[50]
#define SWIGTYPE_p_second_type swig_types[51]
#define SWIGTYPE_p_short swig_types[52]
#define SWIGTYPE_p_signed_char swig_types[53]
#define SWIGTYPE_p_size_type swig_types[54]
#define SWIGTYPE_p_std__allocatorT_Vec3T_double_t_t swig_types[55]
#define SWIGTYPE_p_std__allocatorT_double_t swig_types[56]
#define SWIGTYPE_p_std__allocatorT_int_t swig_types[57]
#define SWIGTYPE_p_std__allocatorT_std__complexT_double_t_t swig_types[58]
#define SWIGTYPE_p_std__allocatorT_std__pairT_double_double_t_t swig_types[59]
#define SWIGTYPE_p_std__allocatorT_std__pairT_std__string_const_double_t_t swig_types[60]
#define SWIGTYPE_p_std__allocatorT_std__string_t swig_types[61]
#define SWIGTYPE_p_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t swig_types[62]
#define SWIGTYPE_p_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t swig_types[63]
#define SWIGTYPE_p_std__allocatorT_unsigned_long_t swig_types[64]
#define SWIGTYPE_p_std__arrayT_std__shared_ptrT_Scale_t_2_t swig_types[65]
#define SWIGTYPE_p_std__complexT_double_t swig_types[66]
#define SWIGTYPE_p_std__functionT_void_fSimulationAreaIterator_const_RF_t swig_types[67]
#define SWIGTYPE_p_std__invalid_argument swig_types[68]
#define SWIGTYPE_p_std__lessT_std__string_t swig_types[69]
#define SWIGTYPE_p_std__mapT_std__string_double_std__lessT_std__string_t_std__allocatorT_std__pairT_std__string_const_double_t_t_t swig_types[70]
#define SWIGTYPE_p_std__pairT_double_double_t swig_types[71]
#define SWIGTYPE_p_std__vectorT_INode_const_p_std__allocatorT_INode_const_p_t_t swig_types[72]
#define SWIGTYPE_p_std__vectorT_ParaMeta_std__allocatorT_ParaMeta_t_t swig_types[73]
#define SWIGTYPE_p_std__vectorT_Scale_const_p_std__allocatorT_Scale_const_p_t_t swig_types[74]
#define SWIGTYPE_p_std__vectorT_Vec3T_double_t_std__allocatorT_Vec3T_double_t_t_t swig_types[75]
#define SWIGTYPE_p_std__vectorT_double_std__allocatorT_double_t_t swig_types[76]
#define SWIGTYPE_p_std__vectorT_int_std__allocatorT_int_t_t swig_types[77]
#define SWIGTYPE_p_std__vectorT_size_t_std__allocatorT_size_t_t_t swig_types[78]
#define SWIGTYPE_p_std__vectorT_std__complexT_double_t_std__allocatorT_std__complexT_double_t_t_t swig_types[79]
#define SWIGTYPE_p_std__vectorT_std__pairT_double_double_t_std__allocatorT_std__pairT_double_double_t_t_t swig_types[80]
#define SWIGTYPE_p_std__vectorT_std__string_std__allocatorT_std__string_t_t swig_types[81]
#define SWIGTYPE_p_std__vectorT_std__vectorT_double_std__allocatorT_double_t_t_std__allocatorT_std__vectorT_double_std__allocatorT_double_t_t_t_t swig_types[82]
#define SWIGTYPE_p_std__vectorT_std__vectorT_int_std__allocatorT_int_t_t_std__allocatorT_std__vectorT_int_std__allocatorT_int_t_t_t_t swig_types[83]
#define SWIGTYPE_p_std__vectorT_unsigned_long_std__allocatorT_unsigned_long_t_t swig_types[84]
#define SWIGTYPE_p_swig__SwigPyIterator swig_types[85]
#define SWIGTYPE_p_unsigned_char swig_types[86]
#define SWIGTYPE_p_unsigned_int swig_types[87]
#define SWIGTYPE_p_unsigned_long_long swig_types[88]
#define SWIGTYPE_p_unsigned_short swig_types[89]
#define SWIGTYPE_p_value_type swig_types[90]
static swig_type_info *swig_types[92];
static swig_module_info swig_module = {swig_types, 91, 0, 0, 0, 0};
#define SWIG_TypeQuery(name) SWIG_TypeQueryModule(&swig_module, &swig_module, name)
#define SWIG_MangledTypeQuery(name) SWIG_MangledTypeQueryModule(&swig_module, &swig_module, name)
 
......@@ -36185,6 +36186,489 @@ SWIGINTERN PyObject *SphericalDetector_swiginit(PyObject *SWIGUNUSEDPARM(self),
return SWIG_Python_InitShadowInstance(args);
}
 
SWIGINTERN PyObject *_wrap_ImportSettings1D_headerPrefix_set(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "ImportSettings1D_headerPrefix_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_headerPrefix_set" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImportSettings1D_headerPrefix_set" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImportSettings1D_headerPrefix_set" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
if (arg1) (arg1)->headerPrefix = *arg2;
resultobj = SWIG_Py_Void();
if (SWIG_IsNewObj(res2)) delete arg2;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
return NULL;
}
SWIGINTERN PyObject *_wrap_ImportSettings1D_headerPrefix_get(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_headerPrefix_get" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
result = (std::string *) & ((arg1)->headerPrefix);
resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ImportSettings1D_linesToSkip_set(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "ImportSettings1D_linesToSkip_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_linesToSkip_set" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImportSettings1D_linesToSkip_set" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImportSettings1D_linesToSkip_set" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
if (arg1) (arg1)->linesToSkip = *arg2;
resultobj = SWIG_Py_Void();
if (SWIG_IsNewObj(res2)) delete arg2;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
return NULL;
}
SWIGINTERN PyObject *_wrap_ImportSettings1D_linesToSkip_get(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_linesToSkip_get" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
result = (std::string *) & ((arg1)->linesToSkip);
resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ImportSettings1D_separator_set(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
std::string *arg2 = 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
int res2 = SWIG_OLDOBJ ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "ImportSettings1D_separator_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_separator_set" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
{
std::string *ptr = (std::string *)0;
res2 = SWIG_AsPtr_std_string(swig_obj[1], &ptr);
if (!SWIG_IsOK(res2)) {
SWIG_exception_fail(SWIG_ArgError(res2), "in method '" "ImportSettings1D_separator_set" "', argument " "2"" of type '" "std::string const &""'");
}
if (!ptr) {
SWIG_exception_fail(SWIG_ValueError, "invalid null reference " "in method '" "ImportSettings1D_separator_set" "', argument " "2"" of type '" "std::string const &""'");
}
arg2 = ptr;
}
if (arg1) (arg1)->separator = *arg2;
resultobj = SWIG_Py_Void();
if (SWIG_IsNewObj(res2)) delete arg2;
return resultobj;
fail:
if (SWIG_IsNewObj(res2)) delete arg2;
return NULL;
}
SWIGINTERN PyObject *_wrap_ImportSettings1D_separator_get(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
std::string *result = 0 ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_separator_get" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
result = (std::string *) & ((arg1)->separator);
resultobj = SWIG_From_std_string(static_cast< std::string >(*result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ImportSettings1D_col_Q_set(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "ImportSettings1D_col_Q_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_col_Q_set" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImportSettings1D_col_Q_set" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
if (arg1) (arg1)->col_Q = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ImportSettings1D_col_Q_get(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_col_Q_get" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
result = (int) ((arg1)->col_Q);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ImportSettings1D_col_R_set(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "ImportSettings1D_col_R_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_col_R_set" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImportSettings1D_col_R_set" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
if (arg1) (arg1)->col_R = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ImportSettings1D_col_R_get(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_col_R_get" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
result = (int) ((arg1)->col_R);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ImportSettings1D_col_dQ_set(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "ImportSettings1D_col_dQ_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_col_dQ_set" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImportSettings1D_col_dQ_set" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
if (arg1) (arg1)->col_dQ = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ImportSettings1D_col_dQ_get(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_col_dQ_get" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
result = (int) ((arg1)->col_dQ);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ImportSettings1D_col_sR_set(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "ImportSettings1D_col_sR_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_col_sR_set" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImportSettings1D_col_sR_set" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
if (arg1) (arg1)->col_sR = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ImportSettings1D_col_sR_get(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_col_sR_get" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
result = (int) ((arg1)->col_sR);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ImportSettings1D_col_lambda_set(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
int arg2 ;
void *argp1 = 0 ;
int res1 = 0 ;
int val2 ;
int ecode2 = 0 ;
PyObject *swig_obj[2] ;
if (!SWIG_Python_UnpackTuple(args, "ImportSettings1D_col_lambda_set", 2, 2, swig_obj)) SWIG_fail;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_col_lambda_set" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
ecode2 = SWIG_AsVal_int(swig_obj[1], &val2);
if (!SWIG_IsOK(ecode2)) {
SWIG_exception_fail(SWIG_ArgError(ecode2), "in method '" "ImportSettings1D_col_lambda_set" "', argument " "2"" of type '" "int""'");
}
arg2 = static_cast< int >(val2);
if (arg1) (arg1)->col_lambda = arg2;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_ImportSettings1D_col_lambda_get(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
int result;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, 0 | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "ImportSettings1D_col_lambda_get" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
result = (int) ((arg1)->col_lambda);
resultobj = SWIG_From_int(static_cast< int >(result));
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_new_ImportSettings1D(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *result = 0 ;
if (!SWIG_Python_UnpackTuple(args, "new_ImportSettings1D", 0, 0, 0)) SWIG_fail;
result = (IO::ImportSettings1D *)new IO::ImportSettings1D();
resultobj = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_IO__ImportSettings1D, SWIG_POINTER_NEW | 0 );
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *_wrap_delete_ImportSettings1D(PyObject *self, PyObject *args) {
PyObject *resultobj = 0;
IO::ImportSettings1D *arg1 = (IO::ImportSettings1D *) 0 ;
void *argp1 = 0 ;
int res1 = 0 ;
PyObject *swig_obj[1] ;
if (!args) SWIG_fail;
swig_obj[0] = args;
res1 = SWIG_ConvertPtr(swig_obj[0], &argp1,SWIGTYPE_p_IO__ImportSettings1D, SWIG_POINTER_DISOWN | 0 );
if (!SWIG_IsOK(res1)) {
SWIG_exception_fail(SWIG_ArgError(res1), "in method '" "delete_ImportSettings1D" "', argument " "1"" of type '" "IO::ImportSettings1D *""'");
}
arg1 = reinterpret_cast< IO::ImportSettings1D * >(argp1);
delete arg1;
resultobj = SWIG_Py_Void();
return resultobj;
fail:
return NULL;
}
SWIGINTERN PyObject *ImportSettings1D_swigregister(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
PyObject *obj;
if (!SWIG_Python_UnpackTuple(args, "swigregister", 1, 1, &obj)) return NULL;
SWIG_TypeNewClientData(SWIGTYPE_p_IO__ImportSettings1D, SWIG_NewClientData(obj));
return SWIG_Py_Void();
}
SWIGINTERN PyObject *ImportSettings1D_swiginit(PyObject *SWIGUNUSEDPARM(self), PyObject *args) {
return SWIG_Python_InitShadowInstance(args);
}
SWIGINTERN PyObject *_wrap_readData1D__SWIG_0(PyObject *self, Py_ssize_t nobjs, PyObject **swig_obj) {
PyObject *resultobj = 0;
std::string *arg1 = 0 ;
......@@ -38265,6 +38749,26 @@ static PyMethodDef SwigMethods[] = {
{ "SphericalDetector_indexOfSpecular", _wrap_SphericalDetector_indexOfSpecular, METH_VARARGS, "SphericalDetector_indexOfSpecular(SphericalDetector self, Beam beam) -> size_t"},
{ "SphericalDetector_swigregister", SphericalDetector_swigregister, METH_O, NULL},
{ "SphericalDetector_swiginit", SphericalDetector_swiginit, METH_VARARGS, NULL},
{ "ImportSettings1D_headerPrefix_set", _wrap_ImportSettings1D_headerPrefix_set, METH_VARARGS, "ImportSettings1D_headerPrefix_set(ImportSettings1D self, std::string const & headerPrefix)"},
{ "ImportSettings1D_headerPrefix_get", _wrap_ImportSettings1D_headerPrefix_get, METH_O, "ImportSettings1D_headerPrefix_get(ImportSettings1D self) -> std::string const &"},
{ "ImportSettings1D_linesToSkip_set", _wrap_ImportSettings1D_linesToSkip_set, METH_VARARGS, "ImportSettings1D_linesToSkip_set(ImportSettings1D self, std::string const & linesToSkip)"},
{ "ImportSettings1D_linesToSkip_get", _wrap_ImportSettings1D_linesToSkip_get, METH_O, "ImportSettings1D_linesToSkip_get(ImportSettings1D self) -> std::string const &"},
{ "ImportSettings1D_separator_set", _wrap_ImportSettings1D_separator_set, METH_VARARGS, "ImportSettings1D_separator_set(ImportSettings1D self, std::string const & separator)"},
{ "ImportSettings1D_separator_get", _wrap_ImportSettings1D_separator_get, METH_O, "ImportSettings1D_separator_get(ImportSettings1D self) -> std::string const &"},
{ "ImportSettings1D_col_Q_set", _wrap_ImportSettings1D_col_Q_set, METH_VARARGS, "ImportSettings1D_col_Q_set(ImportSettings1D self, int col_Q)"},
{ "ImportSettings1D_col_Q_get", _wrap_ImportSettings1D_col_Q_get, METH_O, "ImportSettings1D_col_Q_get(ImportSettings1D self) -> int"},
{ "ImportSettings1D_col_R_set", _wrap_ImportSettings1D_col_R_set, METH_VARARGS, "ImportSettings1D_col_R_set(ImportSettings1D self, int col_R)"},
{ "ImportSettings1D_col_R_get", _wrap_ImportSettings1D_col_R_get, METH_O, "ImportSettings1D_col_R_get(ImportSettings1D self) -> int"},
{ "ImportSettings1D_col_dQ_set", _wrap_ImportSettings1D_col_dQ_set, METH_VARARGS, "ImportSettings1D_col_dQ_set(ImportSettings1D self, int col_dQ)"},
{ "ImportSettings1D_col_dQ_get", _wrap_ImportSettings1D_col_dQ_get, METH_O, "ImportSettings1D_col_dQ_get(ImportSettings1D self) -> int"},
{ "ImportSettings1D_col_sR_set", _wrap_ImportSettings1D_col_sR_set, METH_VARARGS, "ImportSettings1D_col_sR_set(ImportSettings1D self, int col_sR)"},
{ "ImportSettings1D_col_sR_get", _wrap_ImportSettings1D_col_sR_get, METH_O, "ImportSettings1D_col_sR_get(ImportSettings1D self) -> int"},
{ "ImportSettings1D_col_lambda_set", _wrap_ImportSettings1D_col_lambda_set, METH_VARARGS, "ImportSettings1D_col_lambda_set(ImportSettings1D self, int col_lambda)"},
{ "ImportSettings1D_col_lambda_get", _wrap_ImportSettings1D_col_lambda_get, METH_O, "ImportSettings1D_col_lambda_get(ImportSettings1D self) -> int"},
{ "new_ImportSettings1D", _wrap_new_ImportSettings1D, METH_NOARGS, "new_ImportSettings1D() -> ImportSettings1D"},
{ "delete_ImportSettings1D", _wrap_delete_ImportSettings1D, METH_O, "delete_ImportSettings1D(ImportSettings1D self)"},
{ "ImportSettings1D_swigregister", ImportSettings1D_swigregister, METH_O, NULL},
{ "ImportSettings1D_swiginit", ImportSettings1D_swiginit, METH_VARARGS, NULL},
{ "readData1D", _wrap_readData1D, METH_VARARGS, "readData1D(std::string const & file_name, IO::Filetype1D ftype=unknown1D) -> Datafield"},
{ "readData2D", _wrap_readData2D, METH_VARARGS, "readData2D(std::string const & file_name, IO::Filetype2D ftype=unknown2D) -> Datafield"},
{ "writeDatafield", _wrap_writeDatafield, METH_VARARGS, "writeDatafield(Datafield data, std::string const & file_name)"},
......@@ -38430,6 +38934,7 @@ static swig_type_info _swigt__p_IDetector = {"_p_IDetector", "IDetector *", 0, 0
static swig_type_info _swigt__p_IDetectorResolution = {"_p_IDetectorResolution", "IDetectorResolution *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IFootprintFactor = {"_p_IFootprintFactor", "IFootprintFactor *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_INode = {"_p_INode", "INode *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IO__ImportSettings1D = {"_p_IO__ImportSettings1D", "IO::ImportSettings1D *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IPixel = {"_p_IPixel", "IPixel *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IResolutionFunction2D = {"_p_IResolutionFunction2D", "IResolutionFunction2D *", 0, 0, (void*)0, 0};
static swig_type_info _swigt__p_IShape2D = {"_p_IShape2D", "IShape2D *", 0, 0, (void*)0, 0};
......@@ -38522,6 +39027,7 @@ static swig_type_info *swig_type_initial[] = {
&_swigt__p_IDetectorResolution,
&_swigt__p_IFootprintFactor,
&_swigt__p_INode,
&_swigt__p_IO__ImportSettings1D,
&_swigt__p_IPixel,
&_swigt__p_IResolutionFunction2D,
&_swigt__p_IShape2D,
......@@ -38614,6 +39120,7 @@ static swig_cast_info _swigc__p_IDetector[] = { {&_swigt__p_IDetector, 0, 0, 0}
static swig_cast_info _swigc__p_IDetectorResolution[] = { {&_swigt__p_IDetectorResolution, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IFootprintFactor[] = { {&_swigt__p_IFootprintFactor, 0, 0, 0}, {&_swigt__p_FootprintGauss, _p_FootprintGaussTo_p_IFootprintFactor, 0, 0}, {&_swigt__p_FootprintSquare, _p_FootprintSquareTo_p_IFootprintFactor, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_INode[] = { {&_swigt__p_INode, 0, 0, 0}, {&_swigt__p_Beam, _p_BeamTo_p_INode, 0, 0}, {&_swigt__p_FootprintGauss, _p_FootprintGaussTo_p_INode, 0, 0}, {&_swigt__p_FootprintSquare, _p_FootprintSquareTo_p_INode, 0, 0}, {&_swigt__p_IDetector, _p_IDetectorTo_p_INode, 0, 0}, {&_swigt__p_IDetectorResolution, _p_IDetectorResolutionTo_p_INode, 0, 0}, {&_swigt__p_IFootprintFactor, _p_IFootprintFactorTo_p_INode, 0, 0}, {&_swigt__p_IResolutionFunction2D, _p_IResolutionFunction2DTo_p_INode, 0, 0}, {&_swigt__p_OffspecDetector, _p_OffspecDetectorTo_p_INode, 0, 0}, {&_swigt__p_RectangularDetector, _p_RectangularDetectorTo_p_INode, 0, 0}, {&_swigt__p_ResolutionFunction2DGaussian, _p_ResolutionFunction2DGaussianTo_p_INode, 0, 0}, {&_swigt__p_SphericalDetector, _p_SphericalDetectorTo_p_INode, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IO__ImportSettings1D[] = { {&_swigt__p_IO__ImportSettings1D, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IPixel[] = { {&_swigt__p_IPixel, 0, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IResolutionFunction2D[] = { {&_swigt__p_IResolutionFunction2D, 0, 0, 0}, {&_swigt__p_ResolutionFunction2DGaussian, _p_ResolutionFunction2DGaussianTo_p_IResolutionFunction2D, 0, 0},{0, 0, 0, 0}};
static swig_cast_info _swigc__p_IShape2D[] = { {&_swigt__p_IShape2D, 0, 0, 0}, {&_swigt__p_Ellipse, _p_EllipseTo_p_IShape2D, 0, 0}, {&_swigt__p_HorizontalLine, _p_HorizontalLineTo_p_IShape2D, 0, 0}, {&_swigt__p_Line, _p_LineTo_p_IShape2D, 0, 0}, {&_swigt__p_Polygon, _p_PolygonTo_p_IShape2D, 0, 0}, {&_swigt__p_Rectangle, _p_RectangleTo_p_IShape2D, 0, 0}, {&_swigt__p_VerticalLine, _p_VerticalLineTo_p_IShape2D, 0, 0},{0, 0, 0, 0}};
......@@ -38706,6 +39213,7 @@ static swig_cast_info *swig_cast_initial[] = {
_swigc__p_IDetectorResolution,
_swigc__p_IFootprintFactor,
_swigc__p_INode,
_swigc__p_IO__ImportSettings1D,
_swigc__p_IPixel,
_swigc__p_IResolutionFunction2D,
_swigc__p_IShape2D,
......@@ -39272,9 +39780,9 @@ SWIG_init(void) {
SWIG_Python_SetConstant(d, "mft",SWIG_From_int(static_cast< int >(IO::mft)));
SWIG_Python_SetConstant(d, "unknown2D",SWIG_From_int(static_cast< int >(IO::unknown2D)));
SWIG_Python_SetConstant(d, "csv2D",SWIG_From_int(static_cast< int >(IO::csv2D)));
SWIG_Python_SetConstant(d, "bornagain",SWIG_From_int(static_cast< int >(IO::bornagain)));
SWIG_Python_SetConstant(d, "bornagain2D",SWIG_From_int(static_cast< int >(IO::bornagain2D)));
SWIG_Python_SetConstant(d, "tiff",SWIG_From_int(static_cast< int >(IO::tiff)));
SWIG_Python_SetConstant(d, "nicos",SWIG_From_int(static_cast< int >(IO::nicos)));
SWIG_Python_SetConstant(d, "nicos2D",SWIG_From_int(static_cast< int >(IO::nicos2D)));
#if PY_VERSION_HEX >= 0x03000000
return m;
#else
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment