Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix error 'ImageStack' object has no attribute 'shape' #2131

Closed
wants to merge 6 commits into from

Conversation

ashmeigh
Copy link
Collaborator

Issue

Closes #2129

Description

This pull request addresses the issue where tests fail due to AttributeError when trying to access the 'shape' attribute of an 'ImageStack' object in the _execute_gpu function. The issue is resolved by modifying the function to handle cases where 'ImageStack' objects do not have a 'shape' attribute, and instead setting a default number of steps for progress tracking.

Testing

Tests were conducted locally to verify that the changes resolve the AttributeError and do not introduce any regressions. The modified function was tested with different types of 'ImageStack' objects to ensure compatibility and correctness.

Documentation

All changes should be noted in the appropriate file in docs/release_notes

@coveralls
Copy link

coveralls commented Mar 13, 2024

Coverage Status

coverage: 74.261% (-0.05%) from 74.31%
when pulling 2f8abb8 on 2129_median_gpu_fix
into 8cf0f82 on main.

@ashmeigh ashmeigh closed this Mar 14, 2024
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.

Pytest failure AttributeError: 'ImageStack' object has no attribute 'shape'
4 participants