Enable maps of wrapped classes
Autowrap currently doesn't allow the wrapping of maps that have keys that are themselves wrapped. ("Converter can not handle wrapped classes as keys and values in map"). This should be added for ID Datastructure wrapping.
Done in #124
I'm still seeing this issue using a version of autowrap with #124 merged,
Traceback (most recent call last): File "/home/samuel/.local/lib/python3.9/site-packages/autowrap-0.22.8-py3.9.egg/autowrap/CodeGenerator.py", line 520, in create_wrapper_for_class pyx_code, stub_code = self._create_wrapper_for_attribute(attribute) File "/home/samuel/.local/lib/python3.9/site-packages/autowrap-0.22.8-py3.9.egg/autowrap/CodeGenerator.py", line 870, in _create_wrapper_for_attribute to_py_code = converter.output_conversion(t, "_r", "py_result") File "/home/samuel/.local/lib/python3.9/site-packages/autowrap-0.22.8-py3.9.egg/autowrap/ConversionProvider.py", line 978, in output_conversion raise Exception("Converter can not handle wrapped classes as keys and values in map") Exception: Converter can not handle wrapped classes as keys and values in map
Can you add a PR with a MWE as test that shows this behaviour?
Ok, while checking the code, it is obvious that the support was only added for the input_conversion. We need to take the changes from the linked PR #124 and do the same for output_conversion.