webinterface.pages.base_pages.utils.inputs module#

webinterface.pages.base_pages.utils.inputs.generate_input_widget(variables_quant: dataclass, input_format: str, content: dict, key: str = '', editable: bool = True) Any[source]#

Generate input fields in the Streamlit UI based on the specified format and content.

Parameters:
  • input_format (str) – The input format.

  • content (dict) – The content of the input fields.

  • key (str) – The key of the input fields.

  • editable (bool) – Whether the input fields are editable.

Returns:

The input fields.

Return type:

Any

webinterface.pages.base_pages.utils.inputs.update_parameters_submission_form(variables_quant, field, value) None[source]#

Update the session state dictionary with the specified field and value.

Parameters:
  • variables_quant (dataclass) – The variables quantification dataclass containing the session state keys used.

  • field (str) – The field to update.

  • value (Any) – The value to update the field with.