Rymapt / ethoscope

a platform from monitoring animal behaviour in real time from a raspberry pi
http://gilestrolab.github.io/ethoscope/
GNU General Public License v3.0
0 stars 2 forks source link

Downgrade scipy version #50

Closed mark-grimes closed 6 years ago

mark-grimes commented 6 years ago

On Raspbian, the version of scipy used (i.e. the one installed by apt-get) is v0.14.0. The ethoscope software currently "requires" v0.15.1. This causes the build process to avoid the installed version, and download and compile from source (in one thread!) which takes somewhere in the region of four hours. I asked Quentin and he said the version number was only chosen because that was the version he had installed by whatever distro they use.

Looking into it, the ethoscope device software uses just the function scipy.ndimage.measurements.center_of_mass from scipy. There is no change to this code when going from v0.14.0 to v0.15.1 (git diff, then go to "Files" and search for scipy/ndimage/measurements.py).

It's actually a fairly simple bit of code. I'm tempted to copy and paste it somewhere so that we can avoid a dependency on scipy altogether (which is BIG).