Spaces:
Running on Zero

raylim Claude Sonnet 4.5 commited on
Commit
42bcf72
·
unverified ·
1 Parent(s): 0234c58

Fix segment_tissue unpacking in batch analysis

Browse files

The analyze_slide_with_models function was incorrectly calling
segment_tissue and unpacking its return value. segment_tissue returns
4 values (polygon, _, coords, attrs) but we were only unpacking 2.

This fix:
- Converts seg_config string to config object (BiopsySegConfig, etc.)
- Calls segment_tissue with proper individual parameters
- Correctly unpacks all 4 return values
- Uses polygon for slide mask visualization

Fixes: ValueError: too many values to unpack (expected 2)

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>

1 file changed +36 -3
src/mosaic/analysis.py+36-3