toolbox¶
Various useful functions used throughout the package
-
qualg.toolbox.
is_list_or_tuple
(var)¶ Checks if an object is a list or a tuple
-
qualg.toolbox.
assert_list_or_tuple
(var)¶ Asserts that an object is a list or a tuple
-
qualg.toolbox.
assert_str
(var)¶ Asserts that an object is a str
-
qualg.toolbox.
simplify
(obj)¶ Tries to simplify an object
-
qualg.toolbox.
expand
(obj)¶ Tries to expand an object
-
qualg.toolbox.
is_zero
(obj)¶ Tries to check if an object is considered zero
-
qualg.toolbox.
is_one
(obj)¶ Tries to check if an object is considered one
-
qualg.toolbox.
replace_var
(obj, old_variable=None, new_variable=None)¶ Tries to replace a variable in an object.
-
qualg.toolbox.
get_variables
(obj)¶ Tries to get variables in an object.
-
qualg.toolbox.
has_variable
(obj, variable)¶ Tries to check if an object has a variable.