Lars Masanneck commited on
Commit
c8eeb5a
·
unverified ·
2 Parent(s): 9e11347 c7aa9c1

Merge pull request #1 from MasanneckLab/codex/locate-normalizable-variables

Browse files
Files changed (2) hide show
  1. README.md +2 -0
  2. app.py +6 -1
README.md CHANGED
@@ -20,3 +20,5 @@ tags:
20
 
21
  This Streamlit application computes normative Z-scores and percentiles for various Withings smartwatch biomarkers by comparing user-provided values against a global normative dataset. It helps you interpret individual health metrics relative to global distributions.
22
 
 
 
 
20
 
21
  This Streamlit application computes normative Z-scores and percentiles for various Withings smartwatch biomarkers by comparing user-provided values against a global normative dataset. It helps you interpret individual health metrics relative to global distributions.
22
 
23
+ **Note**: Weight normalization is currently disabled in the UI. You can re-enable it by removing "weight" from the `DISABLED_BIOMARKERS` set in `app.py`.
24
+
app.py CHANGED
@@ -39,6 +39,9 @@ BIOMARKER_LABELS = {
39
  # add any others here
40
  }
41
 
 
 
 
42
 
43
  def main():
44
  if "disclaimer_shown" not in st.session_state:
@@ -114,7 +117,9 @@ def main():
114
  bmi_param = bmi_cat
115
 
116
  # Biomarker selection with friendly labels
117
- codes = sorted(norm_df["Biomarkers"].unique())
 
 
118
  friendly = [BIOMARKER_LABELS.get(c, c.title()) for c in codes]
119
  default_idx = friendly.index("Number of Steps")
120
  selected_label = st.sidebar.selectbox(
 
39
  # add any others here
40
  }
41
 
42
+ # Biomarkers temporarily disabled in the UI. Remove from this set to re-enable.
43
+ DISABLED_BIOMARKERS = {"weight"}
44
+
45
 
46
  def main():
47
  if "disclaimer_shown" not in st.session_state:
 
117
  bmi_param = bmi_cat
118
 
119
  # Biomarker selection with friendly labels
120
+ codes = sorted(
121
+ c for c in norm_df["Biomarkers"].unique() if c not in DISABLED_BIOMARKERS
122
+ )
123
  friendly = [BIOMARKER_LABELS.get(c, c.title()) for c in codes]
124
  default_idx = friendly.index("Number of Steps")
125
  selected_label = st.sidebar.selectbox(