Change config

This commit is contained in:
Edgar P. Burkhart 2022-03-11 14:55:16 +01:00
parent f896168071
commit a94c68d414
Signed by: edpibu
GPG key ID: 9833D3C5A25BD227
3 changed files with 22 additions and 12 deletions

View file

@ -33,8 +33,10 @@ domain[0] -= 0.002
domain[1] += 0.002
log.debug(f"domain: {domain}")
bathy_inp = pathlib.Path(config.get("bathy", "inp"))
bathy_out = pathlib.Path(config.get("bathy", "sub"))
inp_root = pathlib.Path(config.get("inp", "root"))
out_root = pathlib.Path(config.get("out", "root"))
bathy_inp = inp_root.joinpath(config.get("inp", "base"))
bathy_out = out_root.joinpath(config.get("out", "sub"))
log.info(f"Reading bathymetry from '{bathy_inp}'")
raw_bathy = np.genfromtxt(bathy_inp)
log.debug(f"Initial size: {raw_bathy.shape}")