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 May 29, 2024
1 parent 413fa9d commit 2536b15
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions WrightTools/artists/_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -1127,7 +1127,9 @@ def subplots_adjust(fig=None, inches=1):
fig.subplots_adjust(top=top, right=right, bottom=bottom, left=left)


def stitch_to_animation(paths, outpath=None, *, duration=0.5, ignore_alpha=True, reduce=None, verbose=True, **kwargs):
def stitch_to_animation(
paths, outpath=None, *, duration=0.5, ignore_alpha=True, reduce=None, verbose=True, **kwargs
):
"""Stitch a series of images into an animation.
Currently supports animated gifs, other formats coming as needed.
Expand Down Expand Up @@ -1179,12 +1181,12 @@ def process_imgs(imgs):
img = next(imgs)
img.save(
fp=outpath,
format='GIF',
format="GIF",
append_images=imgs,
save_all=True,
duration=duration * 1e3,
loop=0,
**kwargs
**kwargs,
)

if verbose:
Expand Down

0 comments on commit 2536b15

Please sign in to comment.