1
Fork 0

Remove dt from config

This commit is contained in:
Edgar P. Burkhart 2022-03-30 10:49:02 +02:00
parent b982baa3c2
commit 4889c8ca21
Signed by: edpibu
GPG Key ID: 9833D3C5A25BD227
3 changed files with 1 additions and 3 deletions

View File

@ -12,6 +12,5 @@ inp=inp_post/spec_nb
compare=inp_post_nb
out=out_post
#nperseg=1024
dt=0.25
x0=-1250
t0=180

View File

@ -12,6 +12,5 @@ inp=inp_post/spec
compare=inp_post_nb
out=out_post
#nperseg=1024
dt=0.25
x0=-1250
t0=180

View File

@ -38,7 +38,7 @@ x0 = config.getint("post", "x0")
arg_x0 = np.abs(x - x0).argmin()
t0 = config.getfloat("post", "t0")
arg_t0 = np.abs(t - t0).argmin()
dt = config.getfloat("post", "dt")
dt = np.diff(t).mean()
f = 1 / dt
nperseg = config.getint("post", "nperseg", fallback=None)
log.info(f"Computing reflection coefficient at x={x0}")