convnwb.utils.checks.is_type¶
- convnwb.utils.checks.is_type(var, var_type)[source]¶
Check is a variable is of the given type(s).
- Parameters:
- var
Variable to test for type match.
- var_typetype or None
Type to test against. If None, then returns True (no type check).
- Returns:
- type_matchbool
Indicates whether the given variable is matches the given type.