Fixed numpy abs
This commit is contained in:
parent
0bdd73da19
commit
46845010f3
1 changed files with 2 additions and 2 deletions
|
@ -31,9 +31,9 @@ x, t = data["x"], data["t"]
|
|||
|
||||
# Cospectral calculations
|
||||
x0 = config.getint("post", "x0")
|
||||
arg_x0 = (x - x0).abs().argmin()
|
||||
arg_x0 = np.abs(x - x0).argmin()
|
||||
t0 = config.getfloat("post", "t0")
|
||||
arg_t0 = (t - t0).abs().argmin()
|
||||
arg_t0 = np.abs(t - t0).argmin()
|
||||
dt = config.getfloat("post", "dt")
|
||||
f = 1 / dt
|
||||
log.info(f"Computing reflection coefficient at x={x0}")
|
||||
|
|
Loading…
Reference in a new issue