Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix transforms not-applied in dashboard #84

Merged
merged 1 commit into from
Jun 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading