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 f173265354.
This commit is contained in:
@@ -534,18 +534,6 @@ def test_empty_observation():
|
||||
assert result == transition
|
||||
|
||||
|
||||
def test_empty_features_raises_error():
|
||||
"""Test that empty features dict raises ValueError."""
|
||||
norm_map = {FeatureType.VISUAL: NormalizationMode.MEAN_STD}
|
||||
stats = {OBS_IMAGE: {"mean": [0.5], "std": [0.2]}}
|
||||
|
||||
with pytest.raises(ValueError, match="Normalization features cannot be empty"):
|
||||
NormalizerProcessorStep(features={}, norm_map=norm_map, stats=stats)
|
||||
|
||||
with pytest.raises(ValueError, match="Normalization features cannot be empty"):
|
||||
UnnormalizerProcessorStep(features={}, norm_map=norm_map, stats=stats)
|
||||
|
||||
|
||||
def test_empty_stats():
|
||||
features = {OBS_IMAGE: PolicyFeature(FeatureType.VISUAL, (3, 96, 96))}
|
||||
norm_map = {FeatureType.VISUAL: NormalizationMode.MEAN_STD}
|
||||
|
||||
Reference in New Issue
Block a user