MannLabs / alphapeptdeep

Deep learning framework for proteomics
Apache License 2.0
105 stars 20 forks source link

GUI failed when cpu count < global_settings['thread_num'] #62

Closed jalew188 closed 1 year ago

jalew188 commented 1 year ago
Traceback (most recent call last):

  File "streamlit\runtime\scriptrunner\script_runner.py", line 556, in _run_script

    exec(code, module.__dict__)

  File "C:\Users\marth\AppData\Local\Programs\peptdeep\peptdeep\webui\main_ui.py", line 55, in <module>

    sidebar[menu]()

  File "peptdeep\webui\settings_ui.py", line 31, in show

    thread_num = st.number_input('Thread number',

  File "streamlit\elements\number_input.py", line 113, in number_input

    return self._number_input(

  File "streamlit\elements\number_input.py", line 225, in _number_input

    raise StreamlitAPIException(

streamlit.errors.StreamlitAPIException: The default `value` of 8 must lie between the `min_value` of None and the `max_value` of 4, inclusively.
jalew188 commented 1 year ago

We have fixed this bug on github code base and on github release v0.2.0 (https://github.com/MannLabs/alphapeptdeep/releases/tag/0.2.0), but peptdeep v0.2.0 still has this bug on PyPi. It will be fixed on PyPi with peptideep v0.2.1