-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eye movement example #429
base: main
Are you sure you want to change the base?
Eye movement example #429
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #429 +/- ##
=======================================
Coverage 99.84% 99.84%
=======================================
Files 23 23
Lines 1250 1250
=======================================
Hits 1248 1248
Misses 2 2 ☔ View full report in Codecov by Sentry. |
examples/mouse_eye_movements.py
Outdated
# ------------- | ||
# Define the file paths to the data. | ||
|
||
data_dir = Path.home() / "Data" / "Sepi-data" / "eye tracking" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now you could directly get it from our sample datasets (ignore me if you were already planning this).
I tried using the :func: |
That's not a bad idea at all, it should work. I think the problem arises because of the |
Also @stellaprins I just had a brief look a this example, and it's shaping up nicely! Some initial observations:
|
@niksirbi awesome! Will have a look tomorrow. This PR is pretty much ready for review after that I think. The example nicely demonstrates the use of Will change the title, any other comments are welcome but can wait till later too. And thanks! This was so much fun to work on! |
…matics-unit/movement into example-eye-movements
@niksirbi Yep, it all works when |
Yeah it would be really easy to add, we just haven't gotten around to doing it yet. |
|
@niksirbi I have a slight preference for how the moving mean filtered plot looks, but equally happy to remove this and just keep the median filtered example in there. Will leave both plots in so that you can see the difference. |
Description
What is this PR
Why is this PR needed?
What does this PR do?
Adds an example (using data Sepi provided), analysing pupil movement of a mouse that is rotated on a platform in two different conditions (
black
anduniform
).In the example
movement
is used in the following ways:movement
example data (sample_data
).plot_trajectory
frommovement.plots
.compute_velocity
from themovement.kinematics
modulecompute_pairwise_distances
frommovement.kinematics
to calculate the Euclidean distances between two keypoints.median_filter
from themovement.filtering
module.References
How has this PR been tested?
Looked over the locally generated docs.
Is this a breaking change?
No.
Does this PR require an update to the documentation?
It is itself an update to the documentation.
Checklist: