1
Fork 0

Merge branch 'swash' of ssh://git.edgarpierre.fr:39529/m2cce/internship into swash

This commit is contained in:
Edgar P. Burkhart 2022-03-30 10:54:37 +02:00
commit fb33be95bb
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 compare=inp_post_nb
out=out_post out=out_post
#nperseg=1024 #nperseg=1024
dt=0.25
x0=-1250 x0=-1250
t0=180 t0=180

View file

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

View file

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