Argument checking functions for the relax user functions.
bool
|
|
bool
|
|
bool
|
is_float(arg,
name=None,
can_be_none=False,
raise_error=True)
Test if the argument is a float. |
source code
|
|
bool
|
is_float_array(arg,
name=None,
size=None,
can_be_none=False,
raise_error=True)
Test if the argument is an array of floats. |
source code
|
|
bool
|
is_float_matrix(arg,
name=None,
dim=( 3, 3) ,
can_be_none=False,
raise_error=True)
Test if the argument is a matrix of floats. |
source code
|
|
bool
|
is_func(arg,
name=None,
can_be_none=False,
raise_error=True)
Test if the argument is a function. |
source code
|
|
bool
|
is_int(arg,
name=None,
can_be_none=False,
raise_error=True)
Test if the argument is an integer. |
source code
|
|
bool
|
is_int_list(arg,
name=None,
size=None,
can_be_none=False,
can_be_empty=False,
none_elements=False,
raise_error=True)
Test if the argument is a list of integers. |
source code
|
|
bool
|
is_int_or_int_list(arg,
name=None,
size=None,
can_be_none=False,
can_be_empty=False,
none_elements=False,
raise_error=True)
Test if the argument is an integer or a list of integers. |
source code
|
|
bool
|
is_list(arg,
name=None,
size=None,
can_be_none=False,
can_be_empty=False,
list_of_lists=False,
raise_error=True)
Test if the argument is a list. |
source code
|
|
bool
|
|
bool
|
is_num(arg,
name=None,
can_be_none=False,
raise_error=True)
Test if the argument is a number. |
source code
|
|
bool
|
is_num_list(arg,
name=None,
size=None,
can_be_none=False,
can_be_empty=False,
raise_error=True)
Test if the argument is a list of numbers. |
source code
|
|
bool
|
is_num_or_num_tuple(arg,
name=None,
size=None,
can_be_none=False,
can_be_empty=False,
raise_error=True)
Test if the argument is a tuple of numbers. |
source code
|
|
bool
|
is_num_tuple(arg,
name=None,
size=None,
can_be_none=False,
can_be_empty=False,
raise_error=True)
Test if the argument is a tuple of numbers. |
source code
|
|
bool
|
is_str(arg,
name=None,
can_be_none=False,
raise_error=True)
Test if the argument is a string. |
source code
|
|
bool
|
is_str_list(arg,
name=None,
size=None,
can_be_none=False,
can_be_empty=False,
list_of_lists=False,
raise_error=True)
Test if the argument is a list of strings. |
source code
|
|
bool
|
|
bool
|
is_str_or_num_or_str_num_list(arg,
name=None,
size=None,
can_be_none=False,
can_be_empty=False,
raise_error=True)
Test if the argument is a number, a string, a list of numbers, or a
list of strings. |
source code
|
|
bool
|
is_str_or_num_list(arg,
name=None,
size=None,
can_be_none=False,
can_be_empty=False,
raise_error=True)
Test if the argument is a string or a list of numbers. |
source code
|
|
bool
|
is_str_or_str_list(arg,
name=None,
size=None,
can_be_none=False,
can_be_empty=False,
raise_error=True)
Test if the argument is a string or a list of strings. |
source code
|
|
bool
|
is_tuple(arg,
name=None,
size=None,
can_be_none=False,
can_be_empty=False,
raise_error=True)
Test if the argument is a tuple. |
source code
|
|