Skip to content

Commit

Permalink
change chart object to be an array, even for trisomy 21 and turners
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourpeas committed Sep 16, 2021
1 parent cc26a93 commit 508e983
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions rcpchgrowth/chart_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,13 +480,13 @@ def create_turner_chart(centile_format: Union[str, list]):
sex_list.update({sex: measurements})

# all data can now be tagged by reference_name and added to reference_data
reference_data = {TURNERS: sex_list}
reference_data = [{TURNERS: sex_list}]
return reference_data

"""
Return object structure
trisomy_21: {
male: {
[turners-syndrome: [{
female: {
height: [
{
sds: -2.667,
Expand All @@ -497,7 +497,7 @@ def create_turner_chart(centile_format: Union[str, list]):
weight: [...]
},
female {...}
}
}]
"""


Expand Down Expand Up @@ -570,12 +570,12 @@ def create_trisomy_21_chart(measurement_method: str, sex: str, centile_format: U
sex_list.update({sex: measurements})

# all data can now be tagged by reference_name and added to reference_data
reference_data = {TRISOMY_21: sex_list}
reference_data = [{TRISOMY_21: sex_list}]
return reference_data

"""
# return object structure
trisomy_21: {
[trisomy_21: {
male: {
height: [
{
Expand All @@ -587,5 +587,5 @@ def create_trisomy_21_chart(measurement_method: str, sex: str, centile_format: U
weight: [...]
},
female {...}
}
}]
"""

0 comments on commit 508e983

Please sign in to comment.