movement icon indicating copy to clipboard operation
movement copied to clipboard

Splitting_Individuals_and_DLC_Format

Open Mahi7828 opened this issue 1 year ago • 4 comments

Before submitting a pull request (PR), please read the contributing guide.

Please fill out as much of this template as you can, but if you have any problems or questions, just leave a comment and we will help out :)

Description

What is this PR

  • [ ] Bug fix
  • [x] Addition of a new feature
  • [ ] Other

Why is this PR needed? To allow the users to select the DLC version according to their choice when saving poses for multi or single individuals.

What does this PR do?

  • Enhances DLC Format Handling: Ensures proper differentiation between DLC1.0 and DLC2.0, maintaining compatibility with both versions.
  • Improves Data Structuring: Implements a MultiIndex header for DLC-formatted data, correctly organizing individuals, body parts, and coordinates.
  • Optimizes Data Saving: Supports saving as a single CSV or multiple files when splitting by individuals in DLC2.0, improving usability

References

Please reference any existing issues/PRs that relate to this PR.

How has this PR been tested?

I tried working on the save_poses.py file and had changed the _ds_to_dlc_style_df() and to_dlc_style_df() function, but the pytest are giving some errors about the shapes, which I am currently not able to figure out.

Is this a breaking change?

No

Does this PR require an update to the documentation?

Yes

Checklist:

  • [X] The code has been tested locally
  • [x] Tests have been added to cover all new functionality
  • [ ] The documentation has been updated to reflect any changes
  • [X] The code has been formatted with pre-commit

Mahi7828 avatar Mar 30 '25 10:03 Mahi7828

Hii @niksirbi Please let me know how to proceed ahead with working on this PR.

Thankyou

Mahi7828 avatar Apr 13 '25 07:04 Mahi7828

Please let me know how to proceed ahead with working on this PR.

Thanks for starting to work on this @Mahi7828! We've been very busy over the last weeks, apologies for the delay in reviewing this PR. Since most of us in the core developer team will be away for the time around Easter, it may take a while longer to provide a detailed review, but we will get to it.

In the meantime, see if you can modify the tests for this function. You will find these in tests/test_unit/test_save_poses.py.

niksirbi avatar Apr 14 '25 19:04 niksirbi

Hi @niksirbi, Thanks for having a look at the pr and suggesting changes. I am a bit busy these days, so I will be able to work on these after a month. If you need progress in this urgently, you can go ahead with. it.

Mahi7828 avatar Jul 06 '25 09:07 Mahi7828