Update app.py
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ def generate_predictions(medication_data, site, bmd, mu, sigma):
|
|
38 |
if not pd.isna(row[year]):
|
39 |
percentage_increase = row[year]
|
40 |
# BMD calculated using initial BMD (from user input)
|
41 |
-
predicted_bmd = bmd * (1 + percentage_increase
|
42 |
predicted_tscore = calculate_tscore(predicted_bmd, mu, sigma)
|
43 |
|
44 |
predictions['Year'].append(year.replace(" Year", "")) # Simplify year label
|
|
|
38 |
if not pd.isna(row[year]):
|
39 |
percentage_increase = row[year]
|
40 |
# BMD calculated using initial BMD (from user input)
|
41 |
+
predicted_bmd = bmd * (1 + percentage_increase)
|
42 |
predicted_tscore = calculate_tscore(predicted_bmd, mu, sigma)
|
43 |
|
44 |
predictions['Year'].append(year.replace(" Year", "")) # Simplify year label
|