Skip to content

V2.0.0 - #2981

Merged
frances-h merged 20 commits into
mainfrom
v2.0.0
Sep 30, 2026
Merged

V2.0.0#2981
frances-h merged 20 commits into
mainfrom
v2.0.0

Conversation

@R-Palazzo

@R-Palazzo R-Palazzo commented Sep 7, 2026 •

Copy link
Copy Markdown
Contributor

Resolve #2944
Resolve #2948
Resolve #2954
Resolve #2955
Resolve #2952
Resolve #2992
Resolve #2950
Resolve #2993
Resolve #2953
Resolve #2994
Resolve #2956
Resolve #2986
Resolve #2984
Resolve #2957
Resolve #2985
Resolve #2990
Resolve #2995
Resolve #3003

@codecov

codecov Bot commented Sep 14, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.53333% with 22 lines in your changes missing coverage. Please review.
✅ Project coverage is 97.92%. Comparing base (33926c9) to head (ff61662).

Files with missing lines Patch % Lines
sdv/cag/base.py 44.44% 5 Missing ⚠️
sdv/_utils.py 94.80% 4 Missing ⚠️
sdv/metadata/metadata.py 99.58% 3 Missing ⚠️
sdv/single_table/base.py 95.77% 3 Missing ⚠️
sdv/datasets/demo.py 88.23% 2 Missing ⚠️
sdv/metadata/_single_table.py 99.06% 2 Missing ⚠️
sdv/multi_table/base.py 96.42% 2 Missing ⚠️
sdv/single_table/utils.py 94.44% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2981      +/-   ##
==========================================
- Coverage   98.07%   97.92%   -0.16%     
==========================================
  Files          77       66      -11     
  Lines        8780     7757    -1023     
==========================================
- Hits         8611     7596    -1015     
+ Misses        169      161       -8     
Flag Coverage Δ
integration 84.18% <86.80%> (+7.45%) ⬆️
unit 96.23% <97.73%> (-0.42%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@R-Palazzo
R-Palazzo marked this pull request as ready for review September 23, 2026 10:02
@R-Palazzo
R-Palazzo requested a review from a team as a code owner September 23, 2026 10:02
Comment thread sdv/cag/base.py
Comment on lines +18 to +25
def get_subclasses(cls):
"""Recursively find subclasses for the current class object."""
subclasses = {}
for subclass in cls.__subclasses__():
subclasses[subclass.__name__] = subclass
subclasses.update(get_subclasses(subclass))

return subclasses

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines untested in codecov

Comment thread sdv/_utils.py
Comment on lines +170 to +171
if hasattr(parsed_value.dt, 'tz_localize'):
parsed_value = parsed_value.dt.tz_localize(None)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this if block is untested

Comment thread sdv/_utils.py
_parse_datetime64_value(val, datetime_format, ignore_timezone) for val in value
])

return _parse_datetime64_value(value, datetime_format, ignore_timezone)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this return is not tested

Comment thread sdv/single_table/base.py

if errors:
raise InvalidDataError(errors)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this method was untested before this PR and remains untested

Comment thread sdv/single_table/base.py
return self.metadata.tables.get(self._table_name, SingleTableMetadata())
return self.metadata.tables.get(self._table_name, _SingleTableMetadata())

return self.metadata

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this return was untested before this PR and is still untested

Comment thread sdv/multi_table/base.py
self._table_synthesizers[table_name]._data_processor.table_name = table_name
self._table_parameters[table_name].update(deepcopy(table_parameters))

def _validate_all_tables(self, data):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this method was untested before and remains untested

Comment thread sdv/multi_table/base.py
if type(scale) not in (float, int) or not scale > 0:
table_names = list(self.get_metadata().tables)
if table_name not in table_names:
raise SynthesizerInputError(f"Table '{table_name}' does not exist in the metadata.")

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this scenario is not tested

Comment thread sdv/datasets/demo.py
Comment on lines +235 to +236
except Exception:
continue

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this scenario wasn't tested before this PR and remains untested

try:
formated_date = datetime.now().strftime(datetime_format)
formatted_date = datetime.now().strftime(datetime_format)
except Exception as exception:

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this exception scenario was untested before and remains untested

Comment thread sdv/single_table/utils.py
"""
if output_folder_path == DISABLE_TMP_FILE:
# Temporary way of disabling the output file feature, used by HMA1.
return [None]

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this scenario is untested

@frances-h
frances-h merged commit 2b1b53c into main Sep 30, 2026
47 checks passed
@frances-h
frances-h deleted the v2.0.0 branch September 30, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment