From 902ef97302c5f76bb5edb5a2f4e21f7ed5fc6350 Mon Sep 17 00:00:00 2001 From: XANTRONIX Industrial Date: Fri, 14 Mar 2025 22:46:59 -0400 Subject: [PATCH] Implement Series.append() to add onto a Series --- lib/xmet/series.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/xmet/series.py b/lib/xmet/series.py index 5694cfc..5178f7b 100644 --- a/lib/xmet/series.py +++ b/lib/xmet/series.py @@ -29,6 +29,10 @@ class Series(dict): def __init__(self): super().__init__() + def append(self, series: Self): + for key in series: + self[key] = series[key] + def neighbors(self, series: Self): return nearest(sorted(self.keys(), reverse=True), sorted(series.keys(), reverse=True))