Repository navigation
Remove unused adapt_labeled_data_to_new_project from deeplabcut.utils - #3543
Merged
deruyter92 merged 1 commit intoOct 21, 2026
Conversation
The function had no callers and could not run (tqdm.tqdm on the tqdm class). Per maintainer discussion in DeepLabCut#3532 it is removed rather than fixed. Also drops the numpy, tqdm and deeplabcut imports that only it used.
C-Achard
approved these changes
Oct 1, 2026
C-Achard
left a comment
Member
There was a problem hiding this comment.
Thanks again @MohammadHijjawi97 !
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replacement for #3532, as discussed there with @C-Achard and @deruyter92.
deeplabcut.utils.conversioncode.adapt_labeled_data_to_new_projecthas no callers in the codebase and could not run as written (tqdm.tqdm(...)on the importedtqdmclass). Rather than fixing it, the agreed decision in #3532 was to remove it: it is outdated, it would be risky once reachable (e.g.remove_old_bodyparts=Trueon a single-animal project drops every column and overwrites the CSV), and moving labeled data to a new project is now better handled by the napari-deeplabcut workflow.Changes:
adapt_labeled_data_to_new_projectfromdeeplabcut/utils/conversioncode.py.numpy,tqdmanddeeplabcutimports that only this function used.Note: the function was reachable as
deeplabcut.utils.adapt_labeled_data_to_new_projectvia the star import indeeplabcut/utils/__init__.py, so this removes a technically public name. Per the discussion in #3532 it was not expected to be in use. A repo-wide search (docs, examples, tests) found no other references.Checks:
pre-commit run --files deeplabcut/utils/conversioncode.py(ruff check/format pass)python -c "import deeplabcut.utils"OKpytest tests/test_conversioncode.pypasses