From 2479c8a2b8e559774a5d18e757d52e65b4143647 Mon Sep 17 00:00:00 2001 From: dachengx Date: Wed, 31 Jul 2024 03:22:43 -0500 Subject: [PATCH] Debug --- appletree/component.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/appletree/component.py b/appletree/component.py index 8f705bd..be273a3 100644 --- a/appletree/component.py +++ b/appletree/component.py @@ -574,7 +574,9 @@ def lineage(self): **{ "rate_name": self.rate_name, "norm_type": self.norm_type, - "bins": tuple(b.tolist() for b in self.bins), + "bins": ( + tuple(b.tolist() for b in self.bins) if self.bins is not None else self.bins + ), "bins_type": self.bins_type, "code": self.code, }, @@ -636,7 +638,7 @@ def lineage(self): return { "rate_name": self.rate_name, "norm_type": self.norm_type, - "bins": tuple(b.tolist() for b in self.bins), + "bins": tuple(b.tolist() for b in self.bins) if self.bins is not None else self.bins, "bins_type": self.bins_type, "file_path": ( os.path.basename(self._file_name)