Skip to content

Remove unused create_folder function from utils.py - #3359

Merged
MMathisLab merged 2 commits into
DeepLabCut:mainfrom
juan-cobos:remove-unused-create-folder
Jun 25, 2026
Merged

Remove unused create_folder function from utils.py#3359
MMathisLab merged 2 commits into
DeepLabCut:mainfrom
juan-cobos:remove-unused-create-folder

Conversation

@juan-cobos

Copy link
Copy Markdown
Contributor

The create_folder function in deeplabcut/pose_estimation_pytorch/utils.py was defined but never imported or called anywhere in the codebase. This PR removes it along with the now-unnecessary import os.

@C-Achard C-Achard added the enhancement New feature or request label Jun 9, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR removes dead code from the PyTorch pose estimation utilities by deleting an unused create_folder helper and its now-unneeded os import, keeping the module focused on actively used utilities.

Changes:

  • Removed the unused create_folder function from deeplabcut/pose_estimation_pytorch/utils.py.
  • Removed the unused import os from the same module.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@C-Achard
C-Achard removed their request for review June 25, 2026 15:37
@MMathisLab
MMathisLab merged commit 6e4465e into DeepLabCut:main Jun 25, 2026
10 checks passed
@juan-cobos
juan-cobos deleted the remove-unused-create-folder branch June 26, 2026 13:14
@C-Achard C-Achard added this to the v3.0.1 milestone Jun 26, 2026
@deruyter92 deruyter92 mentioned this pull request Jul 20, 2026
9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants