Spaces:
Sleeping
Sleeping
Hamza Salhi
commited on
Commit
•
526192e
1
Parent(s):
36547b2
Update exercises/interp.py
Browse filesadded different keys to number inputs
- exercises/interp.py +3 -3
exercises/interp.py
CHANGED
@@ -94,10 +94,10 @@ def block_modelling():
|
|
94 |
# scol1, scol2 = st.beta_columns((1, 1))
|
95 |
# with scol1:
|
96 |
st.markdown('#### Ellipse Shape')
|
97 |
-
rot = st.number_input('Pick a Rotation (-360 to 360)', min_value=-360., max_value=360., value=0., step=5
|
98 |
rot = (360. - rot)
|
99 |
-
srange_major = st.number_input('Major Axis Range', min_value=10., max_value=500., value=100., step=5
|
100 |
-
srange_minor = st.number_input('Semi-Major Axis Range', min_value=10., max_value=500., value=100., step=5
|
101 |
# with scol2:
|
102 |
# st.markdown('#### Sample Selection')
|
103 |
# min_samps = st.number_input("Minimum Samples", min_value=1, max_value=40, value=2, step=1)
|
|
|
94 |
# scol1, scol2 = st.beta_columns((1, 1))
|
95 |
# with scol1:
|
96 |
st.markdown('#### Ellipse Shape')
|
97 |
+
rot = st.number_input('Pick a Rotation (-360 to 360)', min_value=-360., max_value=360., value=0., step=5., key=1)
|
98 |
rot = (360. - rot)
|
99 |
+
srange_major = st.number_input('Major Axis Range', min_value=10., max_value=500., value=100., step=5., key=2)
|
100 |
+
srange_minor = st.number_input('Semi-Major Axis Range', min_value=10., max_value=500., value=100., step=5., key=3)
|
101 |
# with scol2:
|
102 |
# st.markdown('#### Sample Selection')
|
103 |
# min_samps = st.number_input("Minimum Samples", min_value=1, max_value=40, value=2, step=1)
|