Skip to content

Commit

Permalink
Removed walrus operator (only 3.8+), added scipy to requirements, closes
Browse files Browse the repository at this point in the history
  • Loading branch information
dchud committed Mar 13, 2023
1 parent b0c9b4a commit fc47574
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion growthviz/charts.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,8 @@ def overlap_view_double_pediatrics(
color_secondary = "tab:blue"

# Allow zooming in a bit if this is a young subject
if (maxage := individual["ageyears"].max()) < 10:
maxage = individual["ageyears"].max()
if maxage < 10:
ax1_xlim = [0, maxage * 1.1]
# Find stature at P95 for maxage
pct_max = round(
Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@ jupyter-server<2.0.0
matplotlib>=3.3.4
pandas>=1.2.2
qgrid>=1.3.1
scipy
seaborn>=0.11.1

0 comments on commit fc47574

Please sign in to comment.