Update my_pages/ica.py
Browse files- my_pages/ica.py +3 -3
my_pages/ica.py
CHANGED
|
@@ -49,7 +49,7 @@ def render():
|
|
| 49 |
w["Arbitrary"] -= diff * (w["Arbitrary"] / total_other)
|
| 50 |
w["Intentional"] = i_new
|
| 51 |
st.session_state.prev_weights = w.copy()
|
| 52 |
-
st.
|
| 53 |
|
| 54 |
elif c_new != prev_w["Conventional"]:
|
| 55 |
diff = c_new - prev_w["Conventional"]
|
|
@@ -59,7 +59,7 @@ def render():
|
|
| 59 |
w["Arbitrary"] -= diff * (w["Arbitrary"] / total_other)
|
| 60 |
w["Conventional"] = c_new
|
| 61 |
st.session_state.prev_weights = w.copy()
|
| 62 |
-
st.
|
| 63 |
|
| 64 |
elif a_new != prev_w["Arbitrary"]:
|
| 65 |
diff = a_new - prev_w["Arbitrary"]
|
|
@@ -69,7 +69,7 @@ def render():
|
|
| 69 |
w["Conventional"] -= diff * (w["Conventional"] / total_other)
|
| 70 |
w["Arbitrary"] = a_new
|
| 71 |
st.session_state.prev_weights = w.copy()
|
| 72 |
-
st.
|
| 73 |
|
| 74 |
# --- Triangle vertices ---
|
| 75 |
vertices = np.array([
|
|
|
|
| 49 |
w["Arbitrary"] -= diff * (w["Arbitrary"] / total_other)
|
| 50 |
w["Intentional"] = i_new
|
| 51 |
st.session_state.prev_weights = w.copy()
|
| 52 |
+
st.rerun()
|
| 53 |
|
| 54 |
elif c_new != prev_w["Conventional"]:
|
| 55 |
diff = c_new - prev_w["Conventional"]
|
|
|
|
| 59 |
w["Arbitrary"] -= diff * (w["Arbitrary"] / total_other)
|
| 60 |
w["Conventional"] = c_new
|
| 61 |
st.session_state.prev_weights = w.copy()
|
| 62 |
+
st.rerun()
|
| 63 |
|
| 64 |
elif a_new != prev_w["Arbitrary"]:
|
| 65 |
diff = a_new - prev_w["Arbitrary"]
|
|
|
|
| 69 |
w["Conventional"] -= diff * (w["Conventional"] / total_other)
|
| 70 |
w["Arbitrary"] = a_new
|
| 71 |
st.session_state.prev_weights = w.copy()
|
| 72 |
+
st.rerun()
|
| 73 |
|
| 74 |
# --- Triangle vertices ---
|
| 75 |
vertices = np.array([
|