diff --git a/albert/base.py b/albert/base.py index 79c750a..273ea27 100644 --- a/albert/base.py +++ b/albert/base.py @@ -166,7 +166,7 @@ def factory(cls: type[Base], *args: Any, **kwargs: Any) -> Base: @property def is_leaf(self) -> bool: """Get whether the object is a leaf in a tree.""" - return self.children is None + return not bool(self.children) @property def children(self) -> tuple[Base, ...]: diff --git a/examples/rccsd.py b/examples/codegen_rccsd.py similarity index 100% rename from examples/rccsd.py rename to examples/codegen_rccsd.py