From 77d1ddafea6a9053cb4449f66c172eea8788141b Mon Sep 17 00:00:00 2001 From: dachengx Date: Wed, 31 Jul 2024 05:43:10 -0500 Subject: [PATCH] Simplification --- appletree/component.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appletree/component.py b/appletree/component.py index 0401581..de7c5d6 100644 --- a/appletree/component.py +++ b/appletree/component.py @@ -571,7 +571,7 @@ def new_component(self, llh_name: Optional[str] = None, pass_binning: bool = Tru @property def lineage(self): bins_dict = dict() - if getattr(self, "bins", None) or getattr(self, "bins_type", None): + if hasattr(self, "bins") or hasattr(self, "bins_type"): bins_dict = { "bins": ( tuple(b.tolist() for b in self.bins) if self.bins is not None else self.bins