sepal_ui.scripts.utils.check_input#

sepal_ui.scripts.utils.check_input(input_, msg='The value has not been initialized')[source]#

Check if the inpupt value is initialized.

If not raise an error, else return True.

Parameters:
  • input_ (Any) – the input to check

  • msg (str) – the message to display if the input is not set

Returns:

check if the value is initialized

Return type:

bool