Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 13, 2024
1 parent 11964d5 commit f6f5bcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manim/renderer/buffers/buffer.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ def _write_padded(self, data: tuple | np.ndarray, var: str) -> np.ndarray:

# Make a new array with extra columns of 0s
new_shape = list(data.shape)
new_shape[-1] += self._paddings[var]
new_shape[-1] += self._paddings[var]
padded_data = np.zeros(new_shape)
padded_data[..., :data.shape[-1]] = data
padded_data[..., : data.shape[-1]] = data
return padded_data

def write(self, data: dict) -> None:
Expand Down

0 comments on commit f6f5bcb

Please sign in to comment.