From d107f05f4aa9e664350ca0fd0a94d0f5337a41da Mon Sep 17 00:00:00 2001 From: Matt Fleming Date: Sat, 13 Jan 2024 09:09:44 +0000 Subject: [PATCH] Include change point attributes in JSON output Co-authored-by: Henrik Ingo --- hunter/series.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hunter/series.py b/hunter/series.py index 7394874..6242782 100644 --- a/hunter/series.py +++ b/hunter/series.py @@ -99,7 +99,11 @@ class ChangePointGroup: changes: List[ChangePoint] def to_json(self): - return {"time": self.time, "changes": [cp.to_json() for cp in self.changes]} + return { + "time": self.time, + "attributes": self.attributes, + "changes": [cp.to_json() for cp in self.changes], + } class Series: