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