mvwf / qublitz

8 stars 8 forks source link

Max value outside range of default value #2

Closed Alex-Carney closed 6 months ago

Alex-Carney commented 6 months ago
    stop = st.number_input('Stop Time (ns)', min_value=start, max_value=float(t_final), value=200.0, step=1.0, key='square_stop')

  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/runtime/metrics_util.py", line 332, in wrapped_func

    result = non_optional_func(*args, **kwargs)

  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/elements/number_input.py", line 173, in number_input

    return self._number_input(

  File "/home/adminuser/venv/lib/python3.9/site-packages/streamlit/elements/number_input.py", line 287, in _number_input

    raise StreamlitAPIException(

streamlit.errors.StreamlitAPIException: The default `value` of 200.0 must lie between the `min_value` of 0.0 and the `max_value` of 8.0, inclusively.

This error is caused with the following steps:

1) Set Duration (Delta t [ns]) to a value less than 200 (Example: 10) 2) The default "Stop Time" of 200 ns on "Pulse Parameters" is now outside of the range