Skip to content

Commit

Permalink
invoke EASINGS in Curve.__getitem__
Browse files Browse the repository at this point in the history
  • Loading branch information
dmarx committed Dec 13, 2023
1 parent 5cda614 commit f0a78dc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/keyframed/curve.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
from .interpolation import (
bisect_left_keyframe,
INTERPOLATORS,
EASINGS,
)
from .utils import id_generator, DictValuesArithmeticFriendly

Expand Down Expand Up @@ -405,7 +406,9 @@ def __getitem__(self, k:Number) -> Number:
interp = left_value.interpolation_method

if (interp is None) or isinstance(interp, str):
f = INTERPOLATORS.get(interp)
f = EASINGS.get(interp)
if f is None:
f = INTERPOLATORS.get(interp)
if f is None:
raise ValueError(f"Unsupported interpolation method: {interp}")
elif isinstance(interp, Callable):
Expand Down

0 comments on commit f0a78dc

Please sign in to comment.