Skip to content

Commit

Permalink
Do not error if sequence_index is numerical
Browse files Browse the repository at this point in the history
  • Loading branch information
lajohn4747 committed Jun 19, 2024
1 parent a04dc68 commit a6d7988
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdv/sequential/par.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,9 @@ def auto_assign_transformers(self, data):
# Ensure that sequence index does not get auto assigned with enforce_min_max_values
if self._sequence_index:
sequence_index_transformer = self.get_transformers()[self._sequence_index]
if sequence_index_transformer.enforce_min_max_values:
if sequence_index_transformer and getattr(
sequence_index_transformer, 'enforce_min_max_values', False
):
sequence_index_transformer.enforce_min_max_values = False

def _preprocess(self, data):
Expand Down

0 comments on commit a6d7988

Please sign in to comment.