Re: [Python.NET] converting double array to numpy list

2014-08-20 Thread Jeffrey Bush
Numpy arrays are almost always created in Python and there are dozens of methods. That post you link to has the best solution for this case: import numpy as np dest = np.empty(len(src)) That creates a new numpy array of the same length of src with undefined ("empty") values at every index. You co

[Python.NET] converting double array to numpy list

2014-08-20 Thread Mika S
How do I pass a double array as a numpy list from C# (calling python code from c#) or passing something that can become a numpy list with minimal overhead. Right now, the naive way would be to create a new PyList. And to fill it with elements from the double array. But I read on a thread on this

Re: [Python.NET] Problem loading clr.pyd?

2014-08-20 Thread Denis Akhiyarov
probably you need CLR/.NET 4.0 On Wed, Aug 20, 2014 at 6:37 AM, Hans Peter Jepsen wrote: > Hi > > I have a problem with python.net. > > I have with py2exe build a few programs, that uses Python.NET. I have > tried to run the programs build on 3 PCs. > > On 2 of PCs the programs run without pro

[Python.NET] Problem loading clr.pyd?

2014-08-20 Thread Hans Peter Jepsen
Hi I have a problem with python.net. I have with py2exe build a few programs, that uses Python.NET. I have tried to run the programs build on 3 PCs. On 2 of PCs the programs run without problems. These PCs have Windows 7 Professional with Service Pack 1 (64bit). The programs are built on of th