From cebc9295d26a6aa725b10271fcde5246e8bd4b7e Mon Sep 17 00:00:00 2001 From: adosikas <adosikas@users.noreply.github.com> Date: Sun, 6 Nov 2022 02:44:59 +0100 Subject: [PATCH] Fix interpolation --- src/synth_mapping_helper/__init__.py | 2 +- src/synth_mapping_helper/rails.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/synth_mapping_helper/__init__.py b/src/synth_mapping_helper/__init__.py index bdaee0e..883ea68 100644 --- a/src/synth_mapping_helper/__init__.py +++ b/src/synth_mapping_helper/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.9.0" +__version__ = "0.9.1" from . import movement from . import pattern_generation diff --git a/src/synth_mapping_helper/rails.py b/src/synth_mapping_helper/rails.py index ea83f7a..ec36ee9 100644 --- a/src/synth_mapping_helper/rails.py +++ b/src/synth_mapping_helper/rails.py @@ -21,7 +21,7 @@ def interpolate_spline(data: "numpy array (n, m)", new_z: "numpy array (x)") -> pchip_interpolate(padded_data[:, 2], padded_data[:, 0], new_z), pchip_interpolate(padded_data[:, 2], padded_data[:, 1], new_z), new_z, - ), axis=-1)[1:-1] + ), axis=-1) def get_position_at(notes: SINGLE_COLOR_NOTES, beat: float, interpolate_gaps: bool = True) -> "numpy array (2)": # single note