Skip to content

Commit

Permalink
Merge pull request #61 from monarch-initiative/roll-back-to-lists
Browse files Browse the repository at this point in the history
Change default data type for qc report to list
  • Loading branch information
kevinschaper authored Sep 13, 2023
2 parents 7e77372 + 4291038 commit 8d435c0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cat_merge/qc_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ def get_difference(a: Union[List, pd.Series], b: Union[List, pd.Series]) -> Unio
return s if type(a) is list else pd.Series(s, dtype=a.dtype, name=a.name)


def create_qc_report(kg: MergedKG, qc: MergeQC, data_type: type = dict, group_by: str = "provided_by") -> Dict:
def create_qc_report(kg: MergedKG, qc: MergeQC, data_type: type = list, group_by: str = "provided_by") -> Dict:
"""
interface for generating qc report from merged kg
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cat-merge"
version = "0.1.20"
version = "0.1.21"
description = ""
authors = [
"Monarch Initiative <[email protected]>",
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/qc_utils/test_create_qc_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ def qc_report_expected_dict() -> Dict:
return report_values


def test_create_qc_report_defaults(kg_1, empty_qc, qc_report_expected_dict):
def test_create_qc_report_defaults(kg_1, empty_qc, qc_report_expected_list):
test_report = create_qc_report(kg_1, empty_qc)

assert type(test_report) is dict
assert len(test_report) == 5
check_report_data(test_report.keys(), qc_report_expected_dict.keys())
check_report_data(test_report.values(), qc_report_expected_dict.values())
check_report_data(test_report.keys(), qc_report_expected_list.keys())
check_report_data(test_report.values(), qc_report_expected_list.values())


def test_create_qc_report_list(kg_1, empty_qc, qc_report_expected_list):
Expand Down

0 comments on commit 8d435c0

Please sign in to comment.