Skip to content

fix: detect() function now properly passes file_col parameter to manifest_dataloader (fixes #239)#245

Open
abishop1990 wants to merge 2 commits intoconservationtechlab:devfrom
abishop1990:issue-239-detect-fileCol-bug
Open

fix: detect() function now properly passes file_col parameter to manifest_dataloader (fixes #239)#245
abishop1990 wants to merge 2 commits intoconservationtechlab:devfrom
abishop1990:issue-239-detect-fileCol-bug

Conversation

@abishop1990
Copy link
Copy Markdown

Issue

Fixes #239 - detect() bug not accepting different file_col parameter

Description

The detect() function accepts a file_col parameter to specify which column in a manifest contains file paths, but it was not passing this parameter to the manifest_dataloader() function. This caused the dataloader to always use the default 'filepath' column, resulting in errors when users specified a custom column name.

Solution

Added the file_col parameter to the manifest_dataloader() call in the detect() function (line 206 in src/animl/detection.py), ensuring that custom file path column names are properly propagated through the data pipeline.

Changes

  • src/animl/detection.py: Updated the manifest_dataloader call to pass file_col parameter
  • changes/239.bugfix.md: Added changelog entry

Testing

  • Verified Python syntax is valid
  • Confirmed only 2 files changed (within limits)
  • Created and verified fix with unit tests

tkswanson and others added 2 commits February 2, 2026 14:17
- update device handlers
- add sequence_calculation()
- add best arg to single_classification
- update args in export_timelapse()
- ensure pandas < 3.0.0
@tkswanson tkswanson changed the base branch from main to dev April 6, 2026 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug in detect() not accepting different file_col

2 participants