Skip to content

Utils

exists_in_array(a_slice, array, rtol=1e-05, atol=1e-08)

Check if a_slice exists in an array.

PARAMETER DESCRIPTION
a_slice

An example slice of array's first dimension to check.

TYPE: NDArray[float64 | float32]

array

Array to check.

TYPE: NDArray[float64 | float32]

rtol

Relative tolerance for np.isclose.

TYPE: float DEFAULT: 1e-05

atol

Absolute tolerance for np.isclose.

TYPE: float DEFAULT: 1e-08

RETURNS DESCRIPTION
bool

If a_slice is present in array within some tolerance.

format_feature_name(feature)

get_extrema(x, y, extrema_order=3, polyorder=2, window_length=4)

get_obj_from_string(import_string)

Retrieves an object based on an import string and object name.

PARAMETER DESCRIPTION
import_string

The import string, starting from the root module, containing

TYPE: str

RETURNS DESCRIPTION
object

The object identified by the import string.

load_features(file_paths, normalize_distances=False, transform_dihedrals=False)