Skip to content

Commit 5d73525

Browse files
Fix CSV reader adding empty lists in rendering summary (#3430)
* Fix CSV reader adding empty files Fixes issue #3311 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent b7a8a2d commit 5d73525

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

manim/utils/docbuild/manim_directive.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -343,6 +343,9 @@ def _log_rendering_times(*args):
343343

344344
print("\nRendering Summary\n-----------------\n")
345345

346+
# filter out empty lists caused by csv reader
347+
data = [row for row in data if row]
348+
346349
max_file_length = max(len(row[0]) for row in data)
347350
for key, group in it.groupby(data, key=lambda row: row[0]):
348351
key = key.ljust(max_file_length + 1, ".")

0 commit comments

Comments
 (0)