bendalab / thunderfish

python scripts for analyzing recordings of efish electric fields.
GNU General Public License v3.0
5 stars 8 forks source link

fixed python3 import pathes #48

Closed janscience closed 8 years ago

janscience commented 8 years ago

I fixed the import pathes to make thunderfish running with python3 and python 2.7.

Important: Install the likewise updated audioio package.

Run the modules for testing, as well as thunderfish and fishfinder as a package from the root directory of this package:

python -m thunderfish.thunderfish data.wav python -m thunderfish.peakdetection

Calling them the usual way with "python thunderfish.py data.wav" will NOT work anymore. Ask google for "relative imports" to get an idea why...

In addition I added entrypoints to the setup.py. After you install thunderfish with sudo python setup.py install you can use thunderfish and fishfinder from any directory by simply calling thunderfish somedata.wav fishfinder cooldata.mp3 from your console.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-2.4%) to 17.081% when pulling 2097b7ed4a624da61939fe47518c82d504ae32a4 on janscience:master into de730ae314a676adb14a064aa82d7155e73c4a52 on bendalab:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-2.3%) to 17.236% when pulling 05073f76fe3a03e4e83de96ba9cbcfc206dd87d3 on janscience:master into de730ae314a676adb14a064aa82d7155e73c4a52 on bendalab:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-2.3%) to 17.193% when pulling 82d69fac77e8a9769c7c2ba0f4d0a234090796ae on janscience:master into de730ae314a676adb14a064aa82d7155e73c4a52 on bendalab:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-2.3%) to 17.193% when pulling b72ce1911e0dab22da0cda8d2eec4c2d5c1cdb70 on janscience:master into de730ae314a676adb14a064aa82d7155e73c4a52 on bendalab:master.

coveralls commented 8 years ago

Coverage Status

Coverage decreased (-3.6%) to 15.711% when pulling be2f58ac65c8ddcc0df6c4d89875c85729494676 on janscience:master into b9ba3af9a86eda56f1b0905754ebe1cb6520c010 on bendalab:master.

coveralls commented 8 years ago

Coverage Status

Coverage increased (+4.5%) to 23.81% when pulling 78f31b9cbb38a0e4907facdb23d68de685d454c7 on janscience:master into b9ba3af9a86eda56f1b0905754ebe1cb6520c010 on bendalab:master.