jdber1 / opendrop

OpenDrop pendant drop tensiometry software
GNU General Public License v3.0
30 stars 18 forks source link

Error "slice indices must be integers..." #13

Closed MOImaker closed 6 years ago

MOImaker commented 6 years ago

Hi, I'm trying to run the plugin on the following image: vlcsnap-2018-06-21-15h28m55s434

After selecting droplet region and needle region, I encounter the following error: error

My gut tells me it's something to do with having a light droplet on dark background... and there is also poor lighting on the needle.

Any help would be appreciated :)

askoufis commented 6 years ago

This isn't a problem on your end but is actually a bug that was recently fixed in #11. There are two ways you can fix it:

  1. If you've pulled the source code using git, then doing a git pull from the master branch will get you the latest version of the code that has the fix.
  2. The easier method would be to download this file and replace the file in /modules/extract_profile.py with it. I would suggest backing up your current extract_profile.py file just in case this doesn't work.
MOImaker commented 6 years ago

Thanks very much!

I replaced the module and it's working now