Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pvk-developer committed Sep 12, 2022
1 parent 215036d commit eae3bcb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion rdt/hyper_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,6 @@ def _reverse_transform(self, data, prevent_subset):
is_subset = contained and len(data.columns) < len(self._output_columns)
if is_subset:
raise Error(
'There are unexpected columns in the data you are trying to transform. '
'You must provide a transformed dataset with all the columns from the '
'original data.'
)
Expand Down
3 changes: 1 addition & 2 deletions tests/unit/test_hyper_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1718,8 +1718,7 @@ def test_reverse_transform_with_subset(self):

# Run / Assert
expected_msg = (
'There are unexpected columns in the data you are trying to transform. You must '
'provide a transformed dataset with all the columns from the original data.'
'You must provide a transformed dataset with all the columns from the original data.'
)
with pytest.raises(Error, match=expected_msg):
ht.reverse_transform(data)
Expand Down

0 comments on commit eae3bcb

Please sign in to comment.