1
Fork 0

Fixed numpy abs

This commit is contained in:
Edgar P. Burkhart 2022-03-04 11:03:06 +01:00
parent 0bdd73da19
commit 46845010f3
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227

View file

@ -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}")