Python: arguments of type R3 (or C3?) to be initialized from Python list
for instance, we would like to call setPolFilters(polarizer_dir, ...)
as setPolFilters([0,0,1], ...)
[Redmine2494]
for instance, we would like to call setPolFilters(polarizer_dir, ...)
as setPolFilters([0,0,1], ...)
[Redmine2494]
added enhancement label
changed the description
assigned to @a.nejati
mentioned in merge request !2766 (merged)
mentioned in commit 36eab7d8
mentioned in commit 64d51a10
mentioned in merge request !2795 (merged)
mentioned in commit dabca0af
unassigned @a.nejati
This issue can be resolved partially by using the SWIG typemap
technique; e.g. see commit fd25501a. The SWIG typemap maps a Python sequence to a C++ R3
or C3
instance.
However, this method works only for functions or methods which are not overloaded. Overloaded functions or methods must be explicitly 'extended' in SWIG to accept a Python sequence instead of an R3
/C3
instance.
See https://www.swig.org/Doc1.3/Typemaps.html#Typemaps_overloading.
Many of the constructors which accept an R3
or C3
instance are overloaded, and therefore, must be explicitly extended in the SWIG part.
For a first attempt, see MR !2766 (merged).