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 Feb 2, 2024
1 parent bae841e commit 59984c6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
14 changes: 4 additions & 10 deletions WrightTools/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,10 @@ def crawl(directory=None):
desc = wt.kit.describe_wt5(path)
desc["filesize"] = f"{os.path.getsize(path) / 1e6:.1f}"
desc["path"] = str(path.relative_to(directory))
row = [str(i)] + [str(desc[k]) for k in [
"path",
"filesize",
"created",
"name",
"shape",
"axes",
"nvars",
"nchan"
]]
row = [str(i)] + [
str(desc[k])
for k in ["path", "filesize", "created", "name", "shape", "axes", "nvars", "nchan"]
]
table.add_row(*row)
live.update(table)

Expand Down
1 change: 0 additions & 1 deletion WrightTools/kit/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,3 @@
from ._unicode import *
from ._utilities import *
from ._glob import *

3 changes: 1 addition & 2 deletions WrightTools/kit/_glob.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ def describe_wt5(path: Union[str, os.PathLike]):
return desc


def glob_wt5s(directory: Union[str,os.PathLike]):
def glob_wt5s(directory: Union[str, os.PathLike]):
"""find all wt5 files in a directory"""
return pathlib.Path(directory).glob("**/*.wt5")

0 comments on commit 59984c6

Please sign in to comment.