@@ -51,7 +51,6 @@ def age_calculation (birth_date, observation_date, gestation_weeks, gestation_da
5151 birth_date = birth_date ,
5252 observation_date = observation_date )
5353 click .echo (f"Unadjusted: { decimal_age } y,\n { calendar_age } " )
54-
5554
5655@click .command ()
5756@click .argument ('decimal_age' , type = click .FLOAT )
@@ -154,7 +153,7 @@ def measurement_for_sds(reference, decimal_age, sex, measurement_method, sds):
154153@click .argument ("maternal_height" , type = click .FLOAT )
155154@click .argument ("paternal_height" , type = click .FLOAT )
156155@click .argument ('sex' , default = "male" , type = click .Choice (['male' , 'female' ], case_sensitive = True ))
157- def midparental_height (maternal_height : float , paternal_height : float , sex : str )-> str :
156+ def midparental_height (maternal_height : float , paternal_height : float , sex : str ):
158157 """
159158 Returns a midparental height
160159 Parameters include paternal_height in cm, maternal_height in cm and sex as one of 'male' or 'female' (default 'male').
@@ -170,12 +169,15 @@ def midparental_height(maternal_height: float, paternal_height: float, sex: str)
170169 return f"Error: { e } "
171170 click .echo (f"Midparental height: { round (result , 2 )} cm" )
172171
172+
173173fig = pyfiglet .Figlet (font = "standard" )
174174click .echo (fig .renderText ("RCPCHGrowth" ))
175175methods .add_command (age_calculation )
176176methods .add_command (sds_for_measurement )
177177methods .add_command (measurement_for_centile )
178178methods .add_command (measurement_for_sds )
179+ methods .add_command (midparental_height )
180+
179181
180182if __name__ == '__main__' :
181183 methods ()
0 commit comments