The corresponding C++ version (attached) runs as expected/correctly, indicating that this might be a Python wrapper issue...
The corresponding C++ version (attached) runs as expected/correctly, indicating that this might be a Python wrapper issue...