Switched genfromtxt to loadtxt
This commit is contained in:
parent
847c252ef3
commit
1c930431fe
2 changed files with 3 additions and 2 deletions
|
@ -63,7 +63,7 @@ log.info("Interpolating bathymetry in 1D")
|
||||||
z = interpolate.griddata(bathy[:, :2], bathy[:, 2], coords)
|
z = interpolate.griddata(bathy[:, :2], bathy[:, 2], coords)
|
||||||
log.debug(f"z: {z}")
|
log.debug(f"z: {z}")
|
||||||
|
|
||||||
_hires = np.genfromtxt(hires_inp)[::-1]
|
_hires = np.loadtxt(hires_inp)[::-1]
|
||||||
bathy_hires = np.stack(
|
bathy_hires = np.stack(
|
||||||
(
|
(
|
||||||
np.linspace(
|
np.linspace(
|
||||||
|
|
|
@ -38,7 +38,7 @@ out_root = pathlib.Path(config.get("out", "root"))
|
||||||
bathy_inp = inp_root.joinpath(config.get("inp", "base"))
|
bathy_inp = inp_root.joinpath(config.get("inp", "base"))
|
||||||
bathy_out = out_root.joinpath(config.get("out", "sub"))
|
bathy_out = out_root.joinpath(config.get("out", "sub"))
|
||||||
log.info(f"Reading bathymetry from '{bathy_inp}'")
|
log.info(f"Reading bathymetry from '{bathy_inp}'")
|
||||||
raw_bathy = np.genfromtxt(bathy_inp)
|
raw_bathy = np.loadtxt(bathy_inp)
|
||||||
log.debug(f"Initial size: {raw_bathy.shape}")
|
log.debug(f"Initial size: {raw_bathy.shape}")
|
||||||
|
|
||||||
bathy = raw_bathy[
|
bathy = raw_bathy[
|
||||||
|
@ -46,6 +46,7 @@ bathy = raw_bathy[
|
||||||
axis=1
|
axis=1
|
||||||
)
|
)
|
||||||
]
|
]
|
||||||
|
del raw_bathy
|
||||||
log.debug(f"Final size: {bathy.shape}")
|
log.debug(f"Final size: {bathy.shape}")
|
||||||
|
|
||||||
log.info(f"Saving subdomain to 'bathy'")
|
log.info(f"Saving subdomain to 'bathy'")
|
||||||
|
|
Loading…
Reference in a new issue