Skip to content

Revert feat(normalization): add validation for empty features in NormalizerProcessorStep and UnnormalizerProcessorStep (#2087)#2089

Merged
AdilZouitine merged 1 commit into
mainfrom
rever/validation_empty_feature_normalize
Sep 29, 2025
Merged

Revert feat(normalization): add validation for empty features in NormalizerProcessorStep and UnnormalizerProcessorStep (#2087)#2089
AdilZouitine merged 1 commit into
mainfrom
rever/validation_empty_feature_normalize

Conversation

@AdilZouitine
Copy link
Copy Markdown
Collaborator

Revert feat(normalization): add validation for empty features in NormalizerProcessorStep and UnnormalizerProcessorStep (#2087)

Revert "feat(normalization): add validation for empty features in NormalizerProcessorStep and UnnormalizerProcessorStep (#2087)"

This reverts commit f173265.
@AdilZouitine AdilZouitine self-assigned this Sep 29, 2025
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 reverts previous validation logic that required non-empty features in normalization processor steps. The revert removes error checking that prevented instantiation of NormalizerProcessorStep and UnnormalizerProcessorStep with empty features dictionaries.

  • Removes validation that raised ValueError for empty features in normalization processors
  • Deletes associated test cases that verified the empty features validation
  • Adds a missing preprocessor initialization in policy tests

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/lerobot/processor/normalize_processor.py Removes empty features validation and guards feature processing with conditional check
tests/processor/test_normalize_processor.py Removes test cases that verified empty features validation behavior
tests/policies/test_policies.py Adds missing preprocessor initialization in test setup

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/lerobot/processor/normalize_processor.py
@AdilZouitine AdilZouitine merged commit 2d3a605 into main Sep 29, 2025
14 checks passed
@AdilZouitine AdilZouitine deleted the rever/validation_empty_feature_normalize branch September 29, 2025 14:55
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.

3 participants