From 1e032cc6a646472916629549f7f4a677e12f9c83 Mon Sep 17 00:00:00 2001 From: Timur Dzhalalov Date: Fri, 20 Jan 2023 02:06:16 +0100 Subject: [PATCH] bug fix --- ijim/interval_map.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ijim/interval_map.py b/ijim/interval_map.py index 89495a3..b65564e 100644 --- a/ijim/interval_map.py +++ b/ijim/interval_map.py @@ -231,7 +231,7 @@ def add(self, other: IntervalMap | AnyValueType) -> None: other._lpoints[i + 1], other[other._lpoints[i]] ) - if len(self._lpoints) > 0: + if len(other._lpoints) > 0: self.slice_add(other._lpoints[-1], None, other._vals[-1]) else: for i in range(1, len(self._vals)):