ananke.utils module#

Module miscellaneous utilities

class ananke.utils.RecordingDataFrame(*args, **kwargs)[source]#

Bases: DataFrame

Pandas DataFrame that records all its used keys from getitem

__init__(*args, **kwargs) None[source]#
property record_of_all_used_keys#
ananke.utils.extract_parameters_from_docstring(docstring: str, parameters: List[str] | None = None, ignore: List[str] | None = None) str[source]#
ananke.utils.extract_notes_from_docstring(docstring: str) str[source]#
class ananke.utils.LinearNDInterpolatorExtrapolator(points: ndarray, values: ndarray, **kwargs)[source]#

Bases: object

__init__(points: ndarray, values: ndarray, **kwargs)[source]#

Use ND-linear interpolation over the convex hull of points, and nearest neighbor outside (for extrapolation)

Idea taken from https://stackoverflow.com/questions/20516762/extrapolate-with-linearndinterpolator Adapted from https://stackoverflow.com/a/75327466