You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Initial whitespaces on each line in an xyz-file cause validation error:
37115.2500000 419886.6875000 500.0000000
Reading a file like this, results in an error:
diffusivity_rivzee_v6.xyz -> points -> 1168853 -> x: y:37115.2500000 z:419886.6875000 -> x
value is not a valid float (type=type_error.float)
x column is seen as y column etc.
To Reproduce
from pathlib import Path
try: #0.3.1 release
from hydrolib.core.io.xyz.models import XYZModel
except: #main branch and next release #TODO: move to easy imports after https://github.com/Deltares/HYDROLIB-core/issues/410
from hydrolib.core.io.dflowfm.xyz.models import XYZModel
#file_xyz = r'p:\11205258-006-kpp2020_rmm-g6\C_Work\08_RMM_FMmodel\geometry_j19_NL_6-v2\rmm_vzm_v1p1_initial_water_level.xyz'
file_xyz = r'p:\11206813-006-kpp2021_rmm-2d\C_Work\31_RMM_FMmodel\general\diffusivity_rivzee_v6.xyz'
data_xyz = XYZModel(Path(file_xyz))
Version info (please complete the following information):
OS: Windows and Spyder
Version hydrolib main branch
The text was updated successfully, but these errors were encountered:
veenstrajelmer
changed the title
xyz file is not correctly parsed by XYZmodel
xyz file with initial whitespace on lines is not correctly parsed by XYZmodel
Nov 11, 2022
Describe the bug
Initial whitespaces on each line in an xyz-file cause validation error:
Reading a file like this, results in an error:
x column is seen as y column etc.
To Reproduce
Version info (please complete the following information):
The text was updated successfully, but these errors were encountered: