Skip to content

Commit 898e13e

Browse files
committed
Clean-up README.md example
1 parent ae8e6f0 commit 898e13e

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

README.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,22 @@ static void Main(string[] args)
5656
using (Py.GIL())
5757
{
5858
dynamic np = Py.Import("numpy");
59+
Console.WriteLine(np.cos(np.pi * 2));
60+
5961
dynamic sin = np.sin;
60-
Console.WriteLine(np.cos(np.pi*2));
6162
Console.WriteLine(sin(5));
63+
6264
double c = np.cos(5) + sin(5);
6365
Console.WriteLine(c);
6466
/* this block is temporarily disabled due to regression #249
6567
dynamic a = np.array(new List<float> { 1, 2, 3 });
66-
dynamic b = np.array(new List<float> { 6, 5, 4 }, Py.kw("dtype", np.int32));
6768
Console.WriteLine(a.dtype);
69+
70+
dynamic b = np.array(new List<float> { 6, 5, 4 }, Py.kw("dtype", np.int32));
6871
Console.WriteLine(b.dtype);
69-
Console.WriteLine(a * b); */
72+
73+
Console.WriteLine(a * b);
74+
*/
7075
Console.ReadKey();
7176
}
7277
}
@@ -80,7 +85,7 @@ Output:
8085
-0.6752620892
8186
float64
8287
int32
83-
[6. 10. 12.]
88+
[ 6. 10. 12.]
8489
```
8590

8691
[appveyor shield]: https://img.shields.io/appveyor/ci/pythonnet/pythonnet/master.svg?label=AppVeyor

0 commit comments

Comments
 (0)