Skip to content

Commit

Permalink
Simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
dachengx committed Jul 31, 2024
1 parent 6221acd commit 77d1dda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appletree/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77d1dda

Please sign in to comment.