Skip to content

Commit

Permalink
Fix transforms not-applied in dashboard
Browse files Browse the repository at this point in the history
Fixes #83
  • Loading branch information
jvivian committed Jun 6, 2024
1 parent 1d9432c commit 1b4bc3a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions covid19_drdfm/streamlit/Dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,10 @@ def get_data():
# Transforms
st.subheader("Transforms")
c1, c2 = st.columns(2)
c1.multiselect("Difference", ad.var.index, default=ad.var[ad.var["difference"]].index.to_list())
c2.multiselect("LogDifference", ad.var.index, default=ad.var[ad.var["logdiff"]].index.to_list())
diff = c1.multiselect("Difference", ad.var.index, default=ad.var[ad.var["difference"]].index.to_list())
logdiff = c2.multiselect("LogDifference", ad.var.index, default=ad.var[ad.var["logdiff"]].index.to_list())
ad.var["difference"] = ad.var.index.isin(diff)
ad.var["logdiff"] = ad.var.index.isin(logdiff)

# Variable Metadata
with st.expander("Variable Metadata"):
Expand All @@ -98,7 +100,6 @@ def get_data():
if not submitted:
st.stop()


start = time.time()
_, c, _ = st.columns([0.3, 0.4, 0.3])
c.write("Creating output directory and starting model run(s)")
Expand Down

0 comments on commit 1b4bc3a

Please sign in to comment.