Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
scivision committed Jan 10, 2025
1 parent 4309b93 commit 3c77b88
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/gemini3d/find.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import subprocess
import logging

import numpy as np
import numpy

from .utils import filename2datetime

Expand Down Expand Up @@ -61,7 +61,8 @@ def executable(name: str, root: Path | None = None) -> Path:
for p in paths:
if not p:
continue
p = Path(p).expanduser()
if not (p := Path(p).expanduser()).is_dir():
continue

for n in exe_paths:
e = p / n / name
Expand Down Expand Up @@ -140,7 +141,7 @@ def frame(simdir: Path, time: datetime) -> Path:
file_times.append(filename2datetime(fn))

if file_times:
afile_times = np.array(file_times)
afile_times = numpy.array(file_times)
i = abs(afile_times - time).argmin() # type: ignore

if abs(afile_times[i] - time) <= MAX_OFFSET:
Expand Down

0 comments on commit 3c77b88

Please sign in to comment.