asi_core.utils.basics

This module provides basic helper functions.

Functions

ifnone_do(var, notnone_function, none_function)

Apply different functions to a variable depending on if it is None or not

Module Contents

asi_core.utils.basics.ifnone_do(var, notnone_function, none_function)

Apply different functions to a variable depending on if it is None or not

Parameters:
  • var – variable checked if None or not

  • notnone_function – function applied to var if var is not None

  • none_function – function applied to var if var is None

Returns:

return of the respective function