general_toolbox

Description

General functions that can be used by multiple modules

Functions

central_difference(x, func[, step_size, ...])

Take the derivative of a dependent variable calculated with a given function using the central difference method.

check_length_dict(dictionary, keys[, lx])

This function compared the entries, keys, in the provided dictionary to ensure they're the same length.

isiterable(array)

Check if variable is an iterable type with a length (e.g. np.array or list).

set_defaults(dictionary, keys, values[, lx])

This function checks a dictionary for the given keys, and if it's not there, the appropriate value is added to the dictionary.

solve_root(func[, args, method, x0, bounds, ...])

This function will setup and dispatch thermodynamic jobs.