Skip to content

Commit 33ccfcb

Browse files
committed
invoke format
1 parent 5982ee9 commit 33ccfcb

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

fteikpy/_fteik/_fteik3d.py

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -243,23 +243,7 @@ def sweep3d(
243243
for j in range(j0, nx):
244244
for i in range(i0, nz):
245245
sweep(
246-
tt,
247-
ttsgn,
248-
slow,
249-
dargs,
250-
i,
251-
j,
252-
k,
253-
1,
254-
1,
255-
1,
256-
1,
257-
1,
258-
1,
259-
nz,
260-
nx,
261-
ny,
262-
grad,
246+
tt, ttsgn, slow, dargs, i, j, k, 1, 1, 1, 1, 1, 1, nz, nx, ny, grad,
263247
)
264248

265249
# Second sweeping: Top -> Bottom; East -> West; South -> North
@@ -571,7 +555,9 @@ def fteik3d(slow, dz, dx, dy, zsrc, xsrc, ysrc, nsweep=2, grad=False):
571555
ttgrad[i, j, k, 2] = sgnty * (tt[i, j, k] - t1) / dy
572556

573557
# Normalize gradients
574-
gn = norm3d(ttgrad[i, j, k, 0], ttgrad[i, j, k, 1], ttgrad[i, j, k, 2])
558+
gn = norm3d(
559+
ttgrad[i, j, k, 0], ttgrad[i, j, k, 1], ttgrad[i, j, k, 2]
560+
)
575561
if gn > 0.0:
576562
ttgrad[i, j, k] /= gn
577563

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = fteikpy
3-
version = 2.2.2
3+
version = 2.2.3
44
author = Keurfon Luu
55
email = keurfonluu@outlook.com
66
description = Accurate Eikonal solver for Python

0 commit comments

Comments
 (0)