Skip to content

Commit fc47574

Browse files
committed
Removed walrus operator (only 3.8+), added scipy to requirements, closes #61, #66
1 parent b0c9b4a commit fc47574

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

growthviz/charts.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,8 @@ def overlap_view_double_pediatrics(
460460
color_secondary = "tab:blue"
461461

462462
# Allow zooming in a bit if this is a young subject
463-
if (maxage := individual["ageyears"].max()) < 10:
463+
maxage = individual["ageyears"].max()
464+
if maxage < 10:
464465
ax1_xlim = [0, maxage * 1.1]
465466
# Find stature at P95 for maxage
466467
pct_max = round(

requirements.txt

+1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@ jupyter-server<2.0.0
33
matplotlib>=3.3.4
44
pandas>=1.2.2
55
qgrid>=1.3.1
6+
scipy
67
seaborn>=0.11.1

0 commit comments

Comments
 (0)