Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Chaquopy with Scipy.Griddata bugs #68
So i tried to use Scipy Griddata function in a small app with the following code.
I inserted this code inside the Chaquopy Demo app, in ui_demo.py exactly. Inside "def onCreate(self, state):" function.
The app takes about 5 mins to open the screen, sometimes never. Ofc the app works perfectly without this chunk of code.
Is there a way i could use to speedup the code. It's really a small code and i intend to develop a small app that interpolate a small set of data thanks to Python Numpy and Scipy capabilities. No plotting, just that specific small of code that returns a float value.
Just for info this is what i intend to achieve:
I can use interp2.griddata from Scipy in Python or ScatteredInterpolant in Matlab like this:
I use Scipy on my Macbook as well as on my Android phone through IDE Pydroid 3 (which is an Android app that permits to run Python code) and it runs almost instantly.
The code takes more than 5 mins for the same set of data on Chaquopy and it stuck at this specific instruction:
So basically at computing the interpolation value.
I can confirm that
Your simple X=2.5 and Y=3.5 example would never actually work with
We'll try updating SciPy and NumPy to the newest versions as soon as possible. Meanwhile, if your data is 2-dimensional,
We've added a new build of OpenBLAS to the repository which fixes this issue. To make your build re-check the repository, just make any change to your
Although it wasn't the source of the problem, we've also taken the opportunity to add the current version of SciPy, 1.1.0.