Skip to content

Commit

Permalink
add more details for docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
thanh-nguyen-dang committed May 17, 2024
1 parent 3f9cb02 commit c6c474e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 14 deletions.
13 changes: 0 additions & 13 deletions tests/dataframe_tests/test_data/parent/etlMapping.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ mappings:
- name: project_id
parent_props:
- path: centers[country,name,investigator_name].projects[data_type]
flatten_props:
- path: demographics
props:
- name: gender
- name: race
- name: jewish
- name: hispanic
- path: diagnoses
props:
- name: ibd_affection_status
- name: diagnosis
- name: control
sorted_by: updated_datetime, desc
aggregated_props:
- name: _samples_count
path: samples
Expand Down
8 changes: 7 additions & 1 deletion tests/dataframe_tests/test_dataframe_aggregation.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,13 @@ def test_flatten_nested_array_parent_props(translator):
"""
Test to ensure the created dataframe will not contains any array being nested in another array
- input dataframe is the data of root_node (participant)
- we will test after callng translate_parent, it will produce the array field without nested array
- we will test after calling translate_parent, it will produce the array field without nested array
- based on the data that we have
participant with id: 80cc940b-414f-4361-ac9f-24a94279e379 recruited by
center with submitter_id: "4658f8c1-d50c-4651-99b6-4a934fe26783" has two projects
with code: jenkins (which has data_type: ["csv", "json"], and test (which has data_type: ["tsv", "json"])
- expected data_type of participant 80cc940b-414f-4361-ac9f-24a94279e379 is ["csv", "tsv", "json"]
:param translator:
:return:
"""
Expand Down

0 comments on commit c6c474e

Please sign in to comment.