Black reformat + favor non gzip pickle

This commit is contained in:
Edgar P. Burkhart 2022-04-15 10:31:55 +02:00
parent ec5a503c63
commit 47bf31fb3a
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
4 changed files with 36 additions and 19 deletions

View file

@ -33,7 +33,7 @@ t0 = config.getfloat("olaflow", "t0")
x = data("x")
t = data("t")
arg_t0 = np.argmin(np.abs(t - t0*1e3))
arg_t0 = np.argmin(np.abs(t - t0 * 1e3))
watl = data("watl")
zk = data("zk")
@ -44,7 +44,7 @@ olaflow_root = args.output
model = OFModel(olaflow_root)
model.read_mesh()
level = config.getfloat("bathy", "level", fallback=0.)
level = config.getfloat("bathy", "level", fallback=0.0)
watl_t = interpolate.interp1d(x, watl[arg_t0] + level)
alpha_water = np.where(model.z < watl_t(model.x), 1, 0)