You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python wrapper tests on branch python-wrapper-tests are failing due to a TypeError when passing a list of strings in Python to a std::vector<std::string> parameter in C++. For example, instantiating a SeedNtHash with btllib.SeedNtHash("AGCTCAGATC", ["11011"], 1, len(seed[0])) raises:
Traceback (most recent call last):
File "/Users/runner/work/1/s/tests/test_wrappers.py", line 54, in test_rolling
nthash = btllib.SeedNtHash(seq, seed, 1, len(seed[0]))
TypeError: in method 'new_SeedNtHash', argument 2 of type 'std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &'
Additional information:
Wrong number or type of arguments for overloaded function 'new_SeedNtHash'.
Possible C/C++ prototypes are:
btllib::SeedNtHash::SeedNtHash(std::string,std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &,unsigned int,unsigned int,size_t)
btllib::SeedNtHash::SeedNtHash(std::string,std::vector< btllib::SpacedSeed,std::allocator< btllib::SpacedSeed > > const &,unsigned int,unsigned int)
Maybe SWIG is not aware of a vector-of-strings type, in spite of having %template(VectorString) std::vector<std::string>;, %include <std_vector.i>, and %include <stl.i> in btllib.i and extra_common.i.
The text was updated successfully, but these errors were encountered:
Python wrapper tests on branch
python-wrapper-tests
are failing due to a TypeError when passing a list of strings in Python to astd::vector<std::string>
parameter in C++. For example, instantiating aSeedNtHash
withbtllib.SeedNtHash("AGCTCAGATC", ["11011"], 1, len(seed[0]))
raises:Maybe SWIG is not aware of a vector-of-strings type, in spite of having
%template(VectorString) std::vector<std::string>;
,%include <std_vector.i>
, and%include <stl.i>
inbtllib.i
andextra_common.i
.The text was updated successfully, but these errors were encountered: