Skip to content

Commit d107f05

Browse files
mfleminghenrikingo
andcommitted
Include change point attributes in JSON output
Co-authored-by: Henrik Ingo <[email protected]>
1 parent 803f916 commit d107f05

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hunter/series.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,11 @@ class ChangePointGroup:
9999
changes: List[ChangePoint]
100100

101101
def to_json(self):
102-
return {"time": self.time, "changes": [cp.to_json() for cp in self.changes]}
102+
return {
103+
"time": self.time,
104+
"attributes": self.attributes,
105+
"changes": [cp.to_json() for cp in self.changes],
106+
}
103107

104108

105109
class Series:

0 commit comments

Comments
 (0)