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

Check compatibility with SciPy v0.14.0 #40

Open mark-grimes opened 7 years ago

mark-grimes commented 7 years ago

The ethoscope software specifies that it needs SciPy >= 0.15.1. The version of SciPy that can be installed with apt-get on Raspbian Jessie (the version we use) is 0.14.0. Because the version doesn't satisfy the requirement pip will download and compile SciPy from source, which is what takes forever when running the sudo pip2 install -e . command. When generating an image using pi-gen this step alone has so far taken me more then 3 hours. If the apt-get version was enough this step would be skipped.

The only place SciPy is used is for one function call to ndimage.measurements.center_of_mass here:

src/ethoscope/trackers/adaptive_bg_tracker.py#L465

So I propose we downgrade the requirement to 0.14.0. First we need to check the changelogs for SciPy between 0.14.0 and 0.15.1 and/or run a series of tests to make sure that center_of_mass function doesn't give different results.

Note that NumPy is used much more extensively but the version with Raspbian Jessie is fine (1.8.2 >= 1.6.1)

PaoloGB commented 7 years ago

From a very crude check I did on the changelogs, there seems to be an issue with numpy (changelog 0.14.1). I am not sure if this affects the 'center_of_mass' but it should be easy to check.

I would not be surprised if it worked without issues.