Hi Edwin - You're welcome for the compatibility notes. Your changes work for me out of the box now, so: well done & keep it up!
OK so a few things:
(1) when I execute the GRC script you mention (as checked into your repo), I see the following:
{{{
Generating: '/Users/mlk/Desktop/TMP/gr-chaos/chaotic_prefix_generator_template.py'
>>> Warning: This flow graph may not have flow control: no audio or RF hardware blocks found. Add a Misc->Throttle block to your flow graph to avoid CPU congestion.
Traceback (most recent call last):
File "/Users/mlk/Desktop/TMP/gr-chaos/chaotic_prefix_generator_template.py", line 218, in <module>
main()
File "/Users/mlk/Desktop/TMP/gr-chaos/chaotic_prefix_generator_template.py", line 206, in main
tb = top_block_cls(Init=options.Init, Map_parameter=options.Map_parameter, spreading_gain=options.spreading_gain, sps=options.sps)
File "/Users/mlk/Desktop/TMP/gr-chaos/chaotic_prefix_generator_template.py", line 87, in __init__
self.blocks_vector_source_x_0 = blocks.vector_source_c(chaos.chaotic_prefix_bc(0.8,3.98,50,'len_tag_key'), False, 1, [])
return _blocks_swig1.vector_source_c_make(*args, **kwargs)
TypeError: in method 'vector_source_c_make', argument 1 of type 'std::vector< gr_complex,std::allocator< gr_complex > > const &'
}}}
which doesn't have the issue you're having ... but, this leads to the next item:
(2) The method "chaotic_prefix_bc_impl::Logistic_map" returns as "std::vector<float>", while in your GRC script you've made the vector source and file sink both complex ... correcting that helps but doesn't solve the issue because ...
(3) "chaotic_prefix_bc_impl::Logistic_map" is a method in a class, not a function; it is meant to be called from some instantiation of the class, not directly like a function as you're doing in the GRC script. You can make it a static function inside the class & then what you're doing might work; might take some special SWIG sauce to get working.
Hope this is useful. - MLD