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 Aug 26, 2024
1 parent cbc13cc commit 6286441
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions zndraw/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

eventlet.monkey_patch()
import typing as t
import ase
import uuid

import typer
Expand All @@ -29,11 +28,11 @@ def upload(
if not append:
size = len(vis)
print(f"Deleting {size} existing figures ...")
del vis[:size - 1]
del vis[: size - 1]
typer.echo(f"Reading {fileio.name} ...")

generator = get_generator_from_filename(fileio)

frames = list(generator)
vis.append(frames[0])

Expand Down

0 comments on commit 6286441

Please sign in to comment.