Skip to content

Commit

Permalink
update rcpchgrowth package version
Browse files Browse the repository at this point in the history
  • Loading branch information
eatyourpeas committed Apr 27, 2021
1 parent 06765d9 commit c03596f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def age_calculation(birth_date: datetime, observation_date: datetime, gestation_
calendar_age=date_calculations.chronological_calendar_age(
birth_date=datetime.strptime(birth_date, "%Y-%m-%d").date(),
observation_date=datetime.strptime(observation_date,"%Y-%m-%d").date())
click.echo(f"{round(decimal_age,1)} y,\n {calendar_age}")
click.echo(f"{decimal_age} y,\n {calendar_age}")

@click.command()
@click.option('--reference', '-r', default="uk-who", show_default=True, type=click.Choice(["uk-who", "trisomy-21", "turners-syndrome"], case_sensitive=True))
Expand All @@ -66,7 +66,7 @@ def sds(reference: str, decimal_age: float, measurement_method: str, observation
sex=sex
)
cent = centile(result)
click.echo(f"SDS: {round(result,3)}\nCentile: {round(cent,1)} %\n")
click.echo(f"SDS: {result}\nCentile: {round(cent,1)} %\n")

@click.command()
@click.option('--reference', '-r', default="uk-who", show_default=True, type=click.Choice(["uk-who", "trisomy-21", "turners-syndrome"], case_sensitive=True))
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ pyfiglet==0.8.post1
pyparsing==2.4.7
pytest==6.2.3
python-dateutil==2.8.1
rcpchgrowth==2.1.11
rcpchgrowth==2.1.12
scipy==1.6.2
six==1.15.0
toml==0.10.2
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setup(
name ='rcpchgrowth-python-cli',
version ='1.0.6',
version ='1.0.7',
author ='Simon Chapman',
author_email ='[email protected]',
url ='https://github.com/rcpch/rcpchgrowth-python-cli',
Expand Down

0 comments on commit c03596f

Please sign in to comment.