Skip to content

Commit

Permalink
trying improved docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
dvatterott committed Jan 3, 2019
1 parent b8cc694 commit 7aff424
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
8 changes: 5 additions & 3 deletions predeval/categorical.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,9 @@ def check_chi2(self, comparison_data=None):
Returns
-------
None
(tuple): tuple containing:
test_name (str): name of test
pass (bool): whether passed test
"""
assert self.assertion_params['chi2_test'], 'Must input or load reference data chi2-test'
Expand All @@ -170,8 +172,8 @@ def check_exist(self, comparison_data=None):
Returns
-------
2 item tuple with test name and boolean expressing whether passed test.
(string, bool)
2 item tuple with test name and boolean expressing whether passed test.
"""
assert self.assertion_params['cat_exists'] is not None,\
'Must input or load reference minimum'
Expand Down
15 changes: 10 additions & 5 deletions predeval/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,8 @@ def check_min(self, comparison_data=None):
Returns
-------
2 item tuple with test name and boolean expressing whether passed test.
(string, bool)
2 item tuple with test name and boolean expressing whether passed test.
"""
assert self.assertion_params['minimum'] is not None, 'Must input or load reference minimum'
Expand All @@ -197,7 +198,8 @@ def check_max(self, comparison_data=None):
Returns
-------
2 item tuple with test name and boolean expressing whether passed test.
(string, bool)
2 item tuple with test name and boolean expressing whether passed test.
"""
assert self.assertion_params['maximum'] is not None, 'Must input or load reference maximum'
Expand All @@ -219,7 +221,8 @@ def check_mean(self, comparison_data=None):
Returns
-------
2 item tuple with test name and boolean expressing whether passed test.
(string, bool)
2 item tuple with test name and boolean expressing whether passed test.
"""
assert self.assertion_params['mean'] is not None, 'Must input or load reference mean'
Expand Down Expand Up @@ -252,7 +255,8 @@ def check_std(self, comparison_data=None):
Returns
-------
2 item tuple with test name and boolean expressing whether passed test.
(string, bool)
2 item tuple with test name and boolean expressing whether passed test.
"""
assert self.assertion_params['std'] is not None, 'Must input or load reference std'
Expand Down Expand Up @@ -284,7 +288,8 @@ def check_ks(self, comparison_data=None):
Returns
-------
2 item tuple with test name and boolean expressing whether passed test.
(string, bool)
2 item tuple with test name and boolean expressing whether passed test.
"""
assert self.assertion_params['ks_test'], 'Must input or load reference data ks-test'
Expand Down

0 comments on commit 7aff424

Please sign in to comment.