Skip to content

Add validation for resize config in get_transform#1365

Open
Pritika2512 wants to merge 2 commits intoweecology:mainfrom
Pritika2512:validate-resize-config
Open

Add validation for resize config in get_transform#1365
Pritika2512 wants to merge 2 commits intoweecology:mainfrom
Pritika2512:validate-resize-config

Conversation

@Pritika2512
Copy link
Copy Markdown

Description

Adds validation for the resize configuration in get_transform() to ensure it is a list or tuple of length 2.

Changes

  • Added input validation for resize parameter
  • Raises clear error if invalid format is provided

Why this change?

Without validation, incorrect resize values could lead to runtime errors or unexpected behavior. This improves robustness and debugging.

Impact

  • Improves reliability
  • Prevents silent bugs
  • No breaking changes

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.

1 participant