We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28c0f1c commit 56ca346Copy full SHA for 56ca346
tests/to-python.cc
@@ -36,6 +36,7 @@ BOOST_AUTO_TEST_CASE (redir)
36
ToPython tp;
37
38
tp << "import numpy as np"
39
+ << "np.set_printoptions(formatter={'all': lambda x: str(x)})"
40
<< "ar = np.zeros((3,3))"
41
<< "print(ar)"
42
<< "ar[0,1] = 42."
tests/to-python.stdout
@@ -1,4 +1,4 @@
1
-[[ 0. 0. 0.]
2
- [ 0. 0. 0.]
3
- [ 0. 0. 0.]]
+[[0.0 0.0 0.0]
+ [0.0 0.0 0.0]
+ [0.0 0.0 0.0]]
4
42.0
0 commit comments