Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JDTheRipperPC committed Oct 21, 2019
1 parent 0010035 commit a718fd5
Show file tree
Hide file tree
Showing 5 changed files with 199 additions and 155 deletions.
4 changes: 3 additions & 1 deletion sdv/modeler.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,8 @@ def _get_extensions(self, parent, children, tables):
Names of the children.
tables (dict):
Previously processed tables.
Returns:
pandas.DataFrame
"""
extensions = []

Expand Down Expand Up @@ -293,7 +295,7 @@ def cpa(self, table_name, tables):
previously processed tables.
Returns:
None
pandas.DataFrame
"""
LOGGER.info('Modeling %s', table_name)

Expand Down
7 changes: 5 additions & 2 deletions sdv/sdv.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,11 @@ def sample_rows(self, table_name, num_rows, sample_children=True, reset_primary_
raise NotFittedError('SDV instance has not been fitted')

return self.sampler.sample_rows(
table_name, num_rows, sample_children=sample_children,
reset_primary_keys=reset_primary_keys)
table_name,
num_rows,
sample_children=sample_children,
reset_primary_keys=reset_primary_keys
)

def sample_table(self, table_name, num_rows=None, reset_primary_keys=False):
"""Samples the given table to its original size.
Expand Down
Loading

0 comments on commit a718fd5

Please sign in to comment.