Skip to content

Use ndx-pose>=0.2 for DeepLabCutInterface and LightningPoseDataInterface - #1128

Merged
h-mayorquin merged 27 commits into
mainfrom
use_latest_version_of_ndx_pose
Jan 23, 2025
Merged

Use ndx-pose>=0.2 for DeepLabCutInterface and LightningPoseDataInterface#1128
h-mayorquin merged 27 commits into
mainfrom
use_latest_version_of_ndx_pose

Conversation

@h-mayorquin

Copy link
Copy Markdown
Collaborator

This uses the latest release of ndx-pose and modifies the DeepLabCutInterface class to use the latest API (e.g. Skeletons instead of nodes).

This is related to both:
#1114
and
#1127

@h-mayorquin h-mayorquin self-assigned this Nov 6, 2024
@pauladkisson

Copy link
Copy Markdown
Member

@h-mayorquin, are there any blockers on this? Having this done will help me ensure that the dev tests are fixed properly.

@h-mayorquin

h-mayorquin commented Dec 13, 2024

Copy link
Copy Markdown
Collaborator Author

We are waiting for sleap.io to review the PR:

talmolab/sleap-io#143

If having this would make your life easier I propose

  • You can update LightningPose and upgrade it.
  • Then I can modify the CI so we test sleap interface as a stand-alone test while the PR above gets merged.

Or if you have another proposal I am all ears.

@pauladkisson

Copy link
Copy Markdown
Member

We are waiting for sleap.io to review the PR:

I'm a tad confused bc this PR updates DLC and LightningPose but not sleap.

But in general I am in favor of merging what we can, updating the CLI to isolate SLEAP and then we can re-integrate it once the PR is reviewed.

@h-mayorquin

h-mayorquin commented Dec 16, 2024

Copy link
Copy Markdown
Collaborator Author

I'm a tad confused bc this PR updates DLC and LightningPose but not sleep.

The PR does not update the code of LightingPos only the one of DLC.

  • The code of LightningPose needs to be updated
  • We need the upstream changes on sleep but for that, we can adjust on the CI temporary.

@pauladkisson

Copy link
Copy Markdown
Member

The PR does not update the code of LightingPos only the one of DLC.

Ah, I see. You're just resolving dependency conflicts with LightningPose.

Well, even better. We can update DLC in this PR and then LightningPose in the next, adding the appropriate skipifs. Then when all the ndx-pose interfaces are updated we can re-integrate the CI.

@h-mayorquin

Copy link
Copy Markdown
Collaborator Author

Yeah, that makes sense to me.

Can you review #1158? I want to merge that one then do a release. I want to do a release before merging this PR and the one in #1153 as they are both large changes on behavior.

Comment thread src/neuroconv/datainterfaces/behavior/deeplabcut/_dlc_utils.py Outdated
@h-mayorquin h-mayorquin changed the title Use latest version of ndx pose for DeepLabCutInterface Use latest version of ndx pose for DeepLabCutInterface and LightningPoseDataInterface Jan 21, 2025
@talmo

talmo commented Jan 21, 2025

Copy link
Copy Markdown

talmolab/sleap-io#143 merged!

Will ping when we cut a new release.

@h-mayorquin

Copy link
Copy Markdown
Collaborator Author

Thanks a lot @talmo !

@h-mayorquin
h-mayorquin marked this pull request as ready for review January 21, 2025 21:01

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I created a new file with only the pose estimation interfaces.

@h-mayorquin h-mayorquin changed the title Use latest version of ndx pose for DeepLabCutInterface and LightningPoseDataInterface Use ndx-pose>=0.2 for DeepLabCutInterface and LightningPoseDataInterface Jan 22, 2025

@pauladkisson pauladkisson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few small suggestions, but otherwise looks good!

Comment thread CHANGELOG.md Outdated
Comment thread src/neuroconv/datainterfaces/behavior/deeplabcut/_dlc_utils.py Outdated
Comment thread tests/test_on_data/behavior/test_pose_estimation_interfaces.py
@h-mayorquin
h-mayorquin enabled auto-merge (squash) January 23, 2025 19:45
@h-mayorquin
h-mayorquin merged commit b787708 into main Jan 23, 2025
@h-mayorquin
h-mayorquin deleted the use_latest_version_of_ndx_pose branch January 23, 2025 22:56
@codecov

codecov Bot commented Apr 23, 2025

Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 73.77049% with 16 lines in your changes missing coverage. Please review.

Project coverage is 89.64%. Comparing base (96dfdff) to head (ee83879).
Report is 110 commits behind head on main.

Files with missing lines Patch % Lines
...atainterfaces/behavior/sleap/sleapdatainterface.py 0.00% 6 Missing ⚠️
...v/datainterfaces/behavior/deeplabcut/_dlc_utils.py 80.76% 5 Missing ⚠️
...havior/lightningpose/lightningposedatainterface.py 80.00% 4 Missing ⚠️
...ces/behavior/deeplabcut/deeplabcutdatainterface.py 88.88% 1 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1128      +/-   ##
==========================================
- Coverage   90.69%   89.64%   -1.05%     
==========================================
  Files         129      129              
  Lines        8189     8345     +156     
==========================================
+ Hits         7427     7481      +54     
- Misses        762      864     +102     
Flag Coverage Δ
unittests 89.60% <73.77%> (-1.07%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
src/neuroconv/basedatainterface.py 87.05% <ø> (-8.30%) ⬇️
...ces/behavior/deeplabcut/deeplabcutdatainterface.py 92.45% <88.88%> (-1.03%) ⬇️
...havior/lightningpose/lightningposedatainterface.py 92.80% <80.00%> (-2.58%) ⬇️
...v/datainterfaces/behavior/deeplabcut/_dlc_utils.py 61.01% <80.76%> (+2.12%) ⬆️
...atainterfaces/behavior/sleap/sleapdatainterface.py 40.38% <0.00%> (-55.27%) ⬇️

... and 19 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants