SDV
SDV copied to clipboard
Move out the metadata update checks in _utils.py
Problem Description
Both BaseSynthesizer and BaseMultiTableSynthesizer contain a method called _check_metadata_updated. This method is intended to raise a warning if the metadata has been updated before the synthesizer definition or before fitting it. We are planning to move this logic to sdv/utils/_utils.py so that it can be used widely.
Expected behavior
- Move out
_check_metadata_updatedfromBaseSynthesizertosdv/utils/_utils.py - Rename it
_check_single_table_metadata_updated - Move out
_check_metadata_updatedfromBaseMultiTableSynthesizertosdv/utils/_utils.py - Rename it
_check_multi_table_metadata_updated - Update the calls in the synthesizer
__init__()andfit()to use the correct method.
Additional context
Update the tests and docstring accordingly.