denisecailab / ezTrack

Free, platform independent, behavior tracking software.
GNU General Public License v3.0
118 stars 41 forks source link

[ENH] - Make ezTrack installable #93

Closed maestapereira closed 1 month ago

maestapereira commented 1 month ago

In order to use ezTrack in other libraries (i.e. to be public maestapereira/autotask), it needs to be installable.

I made no changes to the code and conventions used and as little changes as possible in terms of organization. I made small changes to the notebooks to allow them to use the installed library. It may be better to revert these import changes? (See bellow). There are no breaking changes.

To install it using pip follow these steps:

Additions to make it installable and easier to contribute:

Changes to notebook imports:

Organization changes:

  1. Move code to ezTrack folder inside of ezTrack (this is a necessary change)
    • FreezeAnalysis\FreezeAnalysis_Functions.py -> ezTrack\FreezeAnalysis\FreezeAnalysis_Functions.py
    • LocationTracking\LocationTracking_Functions.py -> ezTrack\LocationTracking\LocationTracking_Functions.py
  2. Move all notebooks to Tutorials\
    • FreezeAnalysis\FreezeAnalysis_BatchProcess.ipynb -> Tutorials\FreezeAnalysis_BatchProcess.ipynb
    • FreezeAnalysis\FreezeAnalysis_Individual.ipynb -> Tutorials\FreezeAnalysis_Individual.ipynb
    • FreezeAnalysis\FreezeAnalysis_Calibration.ipynb -> Tutorials\FreezeAnalysis_Calibration.ipynb
    • LocationTracking\LocationTracking_BatchProcess.ipynb -> Tutorials\LocationTracking_BatchProcess.ipynb
    • LocationTracking\LocationTracking_Individual.ipynb -> Tutorials\LocationTracking_Individual.ipynb
  3. Added an empty folder ezTrack\tests
    • TODO: eventually add tests to the functions inside this folder