Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
samberger committed Mar 13, 2024
1 parent 64aa71d commit 3ed1931
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flatten.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def flatten_base(base: Base) -> Iterable[Base]:
"""Take a base and flatten it to an iterable of bases."""

if hasattr(base, "elements"):
print("flatten: base has " + str(len(elements)) + " elements")
print("flatten: base has " + str(len(base.elements)) + " elements")
for element in base["elements"]:
yield from flatten_base(element)

Expand Down

0 comments on commit 3ed1931

Please sign in to comment.