Switched genfromtxt to loadtxt
This commit is contained in:
parent
3707db4080
commit
232ece2c28
2 changed files with 3 additions and 2 deletions
|
@ -38,7 +38,7 @@ 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)
|
||||
raw_bathy = np.loadtxt(bathy_inp)
|
||||
log.debug(f"Initial size: {raw_bathy.shape}")
|
||||
|
||||
bathy = raw_bathy[
|
||||
|
@ -46,6 +46,7 @@ bathy = raw_bathy[
|
|||
axis=1
|
||||
)
|
||||
]
|
||||
del raw_bathy
|
||||
log.debug(f"Final size: {bathy.shape}")
|
||||
|
||||
log.info(f"Saving subdomain to 'bathy'")
|
||||
|
|
Reference in a new issue