Skip to content

Commit 7242585

Browse files
committed
Feedback
1 parent a662dfd commit 7242585

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

sdmetrics/reports/single_table/_properties/data_validity.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,8 @@ def _generate_details(self, real_data, synthetic_data, metadata, progress_bar=No
5555
if sdtype not in self._sdtype_to_metric and not is_unique:
5656
continue
5757

58-
if is_sequence_index and sdtype in self._sdtype_to_metric:
59-
if self._sdtype_to_metric[sdtype] == BoundaryAdherence:
60-
continue
58+
if is_sequence_index and self._sdtype_to_metric.get(sdtype) == BoundaryAdherence:
59+
continue
6160

6261
metric = self._sdtype_to_metric.get(sdtype, KeyUniqueness)
6362
column_score = metric.compute(real_data[column_name], synthetic_data[column_name])

0 commit comments

Comments
 (0)