Skip to content

Commit

Permalink
Fix CSV reader adding empty files
Browse files Browse the repository at this point in the history
Fixes issue #3311
  • Loading branch information
JasonGrace2282 committed Oct 31, 2023
1 parent b7a8a2d commit 326728d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions manim/utils/docbuild/manim_directive.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,9 @@ def _log_rendering_times(*args):
sys.exit()

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

# filter out empty lists caused by csv reader
data = [row for row in data if row]

max_file_length = max(len(row[0]) for row in data)
for key, group in it.groupby(data, key=lambda row: row[0]):
Expand Down

0 comments on commit 326728d

Please sign in to comment.